shl icon indicating copy to clipboard operation
shl copied to clipboard

Single header libraries

Single Header Libraries

These are single header libraries that I use in my code, much in the style of Sean Barret stb libraries.

  • list.h: A generic list implementation (see list.md).
  • stack.h: A generic stack implementation (see stack.md).
  • queue.h: A generic queue implementation (see queue.md).
  • binary_heap.h: A generic binary heap implementation (see binary_heap.md)
  • map.h: A generic hash-table implementation (see map.md).
  • set.h: A generic hash-set implementation (see set.md)
  • array.h: A generic helper to work with multi-dimentional arrays.
  • wave_writer.h: Contains functionalities to write .wav files.
  • memory_buffer.h: An in-memory buffer implementation with random access.
  • flic.h: Contains functionalities to read FLIC files. It's a C port of the C++ implementation by David Capello's Aseprite FLIC Library: https://github.com/aseprite/flic
  • memzone.h: A simple memory allocator. (see memzone.md)

See the tests/*_tests.c files to see how to use them.

These are work in progress, and I'm using it in my games, so use at your own risk.

Any tips/suggestions are welcome.