Skip to content

Latest commit

 

History

History
30 lines (20 loc) · 1 KB

File metadata and controls

30 lines (20 loc) · 1 KB

structypes

Warning

Use at your own risk! This library is updated often and may not be stable.

This repository contains header files with implementations for various structs and functions that serve as a standard library for C.

All header files follow the stb library style.

Rules:

  • No external dependencies.
  • Must compile down to C99.
  • Everything must be implemented from scratch.
  • Depend as less as possible on C's standard headers (e.g.: string.h).

You can find examples on how to use every function on the tests folder.

Implemented libraries

Data structures

  • hashmap.h: a hashmap that uses closed addressing.
  • node.h: a simple node to make different kinds of trees.
  • vec.h: a dynamic array that contains generic pointers.

Utility functions

  • str.h: string management using C's char*, not a string builder implementation.