An open API service indexing awesome lists of open source software.

https://github.com/noclaps/zerolimits.h


https://github.com/noclaps/zerolimits.h

c header-files

Last synced: about 2 months ago
JSON representation

Awesome Lists containing this project

README

        

# zerolimits.h

These are a set of C header files that are useful for ZeroLimits C projects. The currently available files are:

To use any of these libraries, you should add this repository as a Git submodule to your project.

```sh
git submodule init # If you're not already using submodules
git submodule add http://github.com/noClaps/zerolimits.h.git
```

This will add a `zerolimits.h` directory into your current working directory. To customise where the submodule gets added, use:

```sh
# To add it to vendor/zerolimits.h
git submodule add http://github.com/noClaps/zerolimits.h.git vendor/zerolimits.h
```

Once you've added the submodule, you can include the library you need into your C file:

```c
#include "vendor/zerolimits.h/string.h"
```

### Naming scheme

A consistent naming scheme can help the naming scheme for different types and functions be consistent and predictable, and make it easy to name

- Types should be in title snake case. The string type should be `String`. The naming scheme is `Type_Subtype`.
- Constructors should have the names of their types in lowercase. So a `String` constructor should be called `string()`.
- The naming scheme for functions goes `[function]_[type]_[subtype]`. For example, if we have a function that prints a `String`, it should be named `print_string()`.