~trhd/dsac

Data Structures and Algorithms for C.
b9a624f2 — Hemmo Nieminen 7 days ago
Version 10.1.1.
d0ab0602 — Hemmo Nieminen 7 days ago
spinlock: remove forgotten debug print
1e5f3dea — Hemmo Nieminen 7 days ago
Compile run tests with sanitizer options in CI.

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.