2021-02-24 09:53:36 +03:00
2021-02-24 09:53:27 +03:00
2021-02-17 20:04:08 +03:00
2021-02-17 20:04:08 +03:00
2021-02-17 20:04:08 +03:00
2021-02-19 05:20:07 +03:00
2021-02-17 20:04:08 +03:00
2021-02-16 04:23:08 +03:00
2021-02-17 20:04:08 +03:00
2021-02-14 16:19:26 +03:00
2021-02-17 04:17:39 +03:00
2021-02-19 05:20:07 +03:00
2021-02-19 05:20:07 +03:00
2021-02-19 05:20:07 +03:00
2021-02-16 04:23:08 +03:00
2021-02-16 04:23:08 +03:00
2020-11-16 03:58:37 +03:00
2020-11-11 01:19:49 +03:00
2020-11-11 01:19:49 +03:00
2020-11-11 01:19:49 +03:00
2021-02-16 04:23:08 +03:00
2020-11-16 09:34:05 +03:00
doc
2021-02-06 08:11:54 +03:00
2021-02-24 09:53:36 +03:00

Overview

License: MIT codecov Total alerts Language grade: C/C++

Common C libraries and data structures. (C99)

I write server-side applications mostly, so most libraries are carefully
optimized for performance e.g : array, hashmap, queue, buffer, timer.

Each folder is stand-alone and contains a single .h .c pair.
There is no build, copy .h .c files you want.

Although I use on Linux mostly, CI runs with

OS         : Linux, MacOS, FreeBSD and Windows  
Compilers  : GCC, Clang, MSVC  
Arch       : x64, aarch64, armv6, armv7, ppc64le, s390x  
Sanitizers : valgrind and clang/gcc sanitizers(address, undefined, thread)

List

Library Description
array Generic array/vector
buffer Buffer for encoding/decoding variables, best fit for protocol/serialization implementations
condition Condition wrapper for Posix and Windows
crc32 Crc32c, uses crc32c CPU instruction if available
heap Min heap which can be used as max heap/priority queue as well
ini Ini parser
linked list Intrusive linked list
logger Logger
map A high performance open addressing hashmap
memory map Mmap wrapper for Posix and Windows
mutex Mutex wrapper for Posix and Windows
option Cmdline argument parser. Very basic one
perf Benchmark utility to get performance counters info via perf_event_open()
queue Generic queue which can be used as dequeue/stack/list as well
sc Utility functions
signal Signal safe snprintf & Signal handler (handling CTRL+C, printing backtrace on crash etc)
socket Pipe / tcp sockets(also unix domain sockets) /Epoll/Kqueue/WSAPoll for Posix and Windows
string Length prefixed, null terminated C strings.
thread Thread wrapper for Posix and Windows.
time Time and sleep functions for Posix and Windows
timer Hashed timing wheel implementation with fast poll / cancel ops
uri A basic uri parser
Languages
C 84.8%
CMake 15.2%