ls lib/c/
C
What the C standard library gives you, and what each libc does with it.
- draft qsort is not always quicksort: what C libraries really doWhat qsort runs in glibc, musl, FreeBSD and macOS, from merge sort and smoothsort to two kinds of Bentley-McIlroy quicksort, and what each means for stability, worst case and memory.
- draft Why C programmers write their own hash tablesThe C library has no map, POSIX hsearch gives you one global string table that behaves differently on every libc, and a usable open-addressing table fits in about a hundred lines.