https://github.com/noclaps/zerolimits.h
https://github.com/noclaps/zerolimits.h
c header-files
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/noclaps/zerolimits.h
- Owner: noClaps
- License: 0bsd
- Created: 2025-03-21T13:14:10.000Z (about 2 months ago)
- Default Branch: main
- Last Pushed: 2025-03-21T13:15:13.000Z (about 2 months ago)
- Last Synced: 2025-03-22T23:11:30.465Z (about 2 months ago)
- Topics: c, header-files
- Language: C
- Homepage:
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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()`.