~trhd/dsac

Data Structures and Algorithms for C.
fe4844cb — Hemmo Nieminen 2 months ago
switch to C2X standard and fix revealed compiler warnings
3fa7bd8f — Hemmo Nieminen 3 months ago
lock: expose -D_GNU_SOURCE via lock's dependency object
7371f636 — Hemmo Nieminen 7 months ago
barrier: improve error handling in barrier_wait()

clone

read-only
https://git.sr.ht/~trhd/dsac
read/write
git@git.sr.ht:~trhd/dsac

You can also use your local clone with git send-email.

#DATA STRUCTURES AND ALGORITHMS FOR C // builds.sr.ht status

#ABOUT

As the title suggests, this is a (small) collection of data structures and algorithms implemented in and for C.

#WHY

To get implementations for data structures and algorithms that work and behave just the way I want them to and to educate myself while implementing them.

#STATUS

Even though there are not (at least yet) many data structures and algorithms implemented here, the ones that are should work (if not, please let me know).

#HOW-TO

To use any data structures or algorithms implemented in this collection one can either:

  • Use this collection as a Meson subproject.
  • Install the shared library (and headers).
  • Copy the source(s) to one's own project.

A-very-quick-guide to Meson based projects:

$ meson setup build
$ ninja -C build test
$ sudo ninja -C build install

Asserts (see "man 3 assert") may have been used in the implementations so one might want to ensure the NDEBUG compiler macro is defined for release builds.

#BUGS, PATCHES, ETC.

Constructive feedback very welcome. Bug tracker and mailing list available via Sourcehut (https://sr.ht/~trhd/dsac).

#LICENSING

See the file called LICENSE.