(lib)stdoc is a general-purpose utility library for the C programming language. It is designed to provide safer, more consistent, and more ergonomic alternatives to common patterns in standard C, while preserving performance and low-level control.
(lib)stdoc aims to address these problems by offering a carefully designed set of utilities that improve safety and developer experience without hiding the nature of C.
You need several Tools for compiling this project:
- GCC / Clang latest version
- Make latest version
Clone the repository:
git clone https://github.com/uoctamika/stdoc.gitThen build this project:
$ cd stdoc$ make BUILD=release# make install(NOTE:default installation path at /usr/local/ for Linux) (NOTE:# mean sudo privilege)
Then you can compile your own projects with stdoc:
gcc main.c -lstdoc -o apprelease - recommended option for development a software with O2
debug - for semi-low debugging this lib, catching warnings without zero O2
strict - warnings can be errors, mostly for lib maintainer
if you want configuration you own installation, we allow you to modify top section before BUILD ?= of GNU make in root
#include <stdoc.h>
int main(void) {
stdoc_version(); // check version
stdoc_printf("Hello from stdoc!\n");
return 0;
}All public APIs use the stdoc_ prefix to avoid conflicts.
example:
stdoc_version(); stdoc_printf();
Contributions are welcome for making this library better. You can request new features or give us ideas.
Wikipedia: https://en.wikipedia.org/wiki/C_(programming_language)
Documentation C: https://devdocs.io/c/
Documentation C Man Pages: man libc
Documentation C Man Pages Online: https://man7.org/linux/man-pages/index.html
ISO C Wiki: https://www.iso-9899.info/wiki/The_Standard
ISO C Books latest: https://www.iso.org/standard/82075.html