Examples of type-generic code in pure C, leveraging void * pointers and low-level memory management (malloc and friends).
Inspired by Jerry Cain's magnificent "Programming Paradigms" lecture series (Stanford CS107, 2008).
Includes type-generic versions of:
- swap
- linear search
- binary search
- mergesort
- quicksort
- stack (data structure)
- queue (using two stacks)