tinybits
Tiny bits and useful snippets that I keep using everywhere.
Too simple to become libraries. Just cut & paste.
Cross-platform C/C++.
Public Domain.
SnippetLanguageDomain
C++ARC4 stream cypher
C/C++Old assert() macro with new tricks
Catoi() implementation
C++Benchmark code
CDichotomic binary search
C++Dichotomic binary search
CBuild macros
CDebug macros
C++Defer macro, Go style
C++Directory listing
CSmall YAML-subset config file parser
BashDual bash/batch file
CEndianness conversions
CError handling
CTight FSM
C++Garbage collector (C++)
CSimple binary to ascii encoder
CHexdump viewer
C++De/humanized numbers
CConfig parser (ini+)
CJSON5/SJSON/JSON parser/writer
CLogging utilities
CSimplest colorful logger
C++Session logger
CWildcard/pattern matching
CMIME/file-type detection
C++11Chainable pipes
C++Comma-based printer
CDigital pulses
C++Integer to roman literals
CC string library
C++C++ string utilities
CTGA writer (fork)
C++Timing utilities
CTODO() macro
CTerminal utilities
CUnit-testing
C++.iso/9960 unarchiver
C++.tar unarchiver
C++.zip unarchiver
C++Variant class
Cvbyte encoder/decoder (VLE)
CWAV writer (fork)
C/C++Portable host macros
C++zlib inflater