Skip to content

Latest commit

 

History

History
26 lines (18 loc) · 544 Bytes

README.md

File metadata and controls

26 lines (18 loc) · 544 Bytes

99¢

Single-header public domain libraries for C99.

Simple dynamically allocated string buffers.

SLoC Category
97 Utils
buffer_t buf = buffer_create(0);
buffer_extend(&buf, "bar", 3);
buffer_insert(&buf, 0, "foo", 3);
buffer_remove(&buf, 1, 3);
buffer_push(&buf, 't');

assert(strcmp(buf.bytes, "fart") == 0);

License

These libraries are dedicated to the public domain. On situations where this is not possible, they fall under the CC0 Public Domain Dedication.