A set of C snippets made for practice and quick reference
NOTE: Because these are mainly for learning they may not be implemented in a sensible way or the most efficient way
- Benchmarking implementation to time how long has passed between two points
- Dynamic array implementation
- Example implementation of a hashmap using a hashtable
- Example implementation of a hashtable
- A set of quick functions that help implement commonly found/weird problems
- Implementation of a generic linked list using the _Generic macro
- Straight forward implementation of a logging function with optional output to stderr
- Super simple implementation of memory leak prevention counter using standard lib malloc
- Other random tests I've done to understand C behavior