https://github.com/julienrull/libzro
A header-only C library that provides essential data structures
https://github.com/julienrull/libzro
arena-allocator c dynamic-array hmap library unittest
Last synced: 3 months ago
JSON representation
A header-only C library that provides essential data structures
- Host: GitHub
- URL: https://github.com/julienrull/libzro
- Owner: julienrull
- License: mit
- Created: 2024-08-01T16:30:44.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2025-03-11T15:10:17.000Z (3 months ago)
- Last Synced: 2025-03-11T16:24:18.511Z (3 months ago)
- Topics: arena-allocator, c, dynamic-array, hmap, library, unittest
- Language: C
- Homepage:
- Size: 1.13 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# libzro
> [!WARNING]
> zro.h is still in development, do not use in production !A header-only C library that provides essential data structures, including:
- **Generic memory management**
- **Arena allocator**
- **Dynamic array**
- **Hashmap** (TODO)## Getting Started
### Download
```sh
wget https://raw.githubusercontent.com/julienrull/libzro/refs/heads/main/zro.h
```OR
```sh
curl https://raw.githubusercontent.com/julienrull/libzro/refs/heads/main/zro.h -o libzro.h
```### Setup
Add this in one translation unit (One source file):
```c
#define ZRO_IMPLEMENTATION
#include "zro.h"
```In other files, when you need to use the library, juste include "zro.h"
## Tests
[nob.h by tsoding](https://github.com/tsoding/nob.h) is used to execute builds and tests.
To run the tests (on Windows or Unix base system) juste bootstrap "nob.c" with your favorite C compiler and execute the "test" command like this:
```shell
gcc nobe.c -o nob
./nob test
```