Orolia2s/libo2s
Data Structures for C
Reliable datastructure library for C.
The include folder contains the public interface, while the src folder contains the implementation.
classDiagram
class A["Array"] {
memory
push_back()
pop_back()
}
class S["String"] {
}
class D["Deque"] {
memory
push_back()
push_front()
pop_back()
pop_front()
}
class Q["Queue"] {
push()
pop()
}
class T["Stack"] {
push()
pop()
}
A <|-- S
D <|-- T
D <|-- Q
classDiagram
class I["input stream"] {
buffer
accumulate(count)
}
class S["string input stream"] {
}
class F["file input stream"] {
file descriptor
}
I <|-- S
I <|-- F
Add the dependency in your build.zig.zon
by running the following command:
zig fetch --save git+https://github.com/Orolia2s/libo2s#master
Then, in your build.zig
:
const libo2s = b.dependency("libo2s", { .target = target, .optimize = optimize }).artifact("o2s");
// wherever needed:
exe.linkLibrary(libo2s);
requires zig >= 0.14.0
zig build
zig build test
requires doxygen
zig build doc
open doc/html/index.html