nolibc is a tweakable header-only implementation of a standard C library subset, which helps to build lean binaries without linking against the runtime.
nolibc provides necessary built-in functions, macros and type aliases to facilitate most needs a lean binary might have.
assert.h:- overridable
assertmacro; - overridable
static_assertmacro;
- overridable
errno.h:errno_ttype alias,- basic errno codes including
EOK, strerrorandstrerror_sfunctions;
limits.h:CHAR_BIT,RSIZE_MAXfor probabilistic validation ofsize_tvalues;
stdalign.h:alignof,alignas, etc.;
stdbool.h:booltype,trueandfalseboolean values;
stddef.h:NULL,size_tandrsize_tstandard types;
stdlib.h:- overridable
abortfunction, constraint_handler_ttype;
- overridable
stdnoreturn.h:noreturnfunction qualifier;
string.h:memcpy, andmemcpy_s,memset,strlen.