Extension of C standard library in pure C11 in a form of single-file header.
To add xstd
to your project, just copy and paste xstd.h
which is a vendored
bundle of all header files.
You can get latest/unstable bundle by running make bundle
make tests
Globals are written in snake case and prefixed with g_
.
Private type names are written in snake_case
with an xstd_
prefix.
Public type names are typedef
with a CamelCase
name.
Interfaces implementations are decoupled in three parts:
- virtual table: a struct containing pointer to methods
- interface struct: a struct containing a pointer to a virtual table and an offset to the body
- body: private field specific to interface implementations
If you want to contribute to xstd.h
to add a feature or improve the code contact
me at [email protected], open an
issue or make a
pull request.
Please give a โญ if this project helped you!
MIT ยฉ Alexandre Negrel