negrel / xstd.h

Extension of C standard library in pure C11.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

xstd.h - Extension of C standard library.

Extension of C standard library in pure C11 in a form of single-file header.

Get started

To add xstd to your project, just copy and paste xstd.h which is a vendored bundle of all header files.

Getting latest bundle

You can get latest/unstable bundle by running make bundle

Running the tests

make tests

Conventions

Globals

Globals are written in snake case and prefixed with g_.

Type Names

Private type names are written in snake_case with an xstd_ prefix.

Public type names are typedef with a CamelCase name.

Interfaces

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

Contributing

If you want to contribute to xstd.h to add a feature or improve the code contact me at negrel.dev@protonmail.com, open an issue or make a pull request.

🌠 Show your support

Please give a ⭐ if this project helped you!

buy me a coffee

📜 License

MIT © Alexandre Negrel

About

Extension of C standard library in pure C11.

License:MIT License


Languages

Language:C 97.9%Language:Makefile 1.3%Language:Nix 0.8%