- This is the library from Learn C the Hard Way
- I have implemented many of the Extra-Credit and How to Improve it sections.
- Not yet complete as I am still working my way through the book.
- Currently implements:
- Doubly-Linked Lists
- Dynamically-Sized Arrays
- Radix Sort through a RadixMap
- To imeplement:
- Stacks
- Queues
- Hashmaps
- Binary Search Trees
- Ternary Search Trees
- A Stats Engine
- URL Router
- TCP/IP Client
- Has been made more robust with additional check() statements and more unit tests.
- Linked list operations
List_shift
andList_unshift
have been renamedList_fpop
andList_fpush
for "front" pop and "front" push. - Compiler flags have been changed slightly to allow for faster compiling (should not affect usage or post-compilation performance)
- Additional options for make:
make devp
doesmake dev
with-O2
for testing performance.make remake
doesmake clean
followed bymake
make remaked
doesmake clean
followed bymake dev
make remakedp
doesmake clean
followed bymake devp
- Compile using
make
- The compile process is not very robust.
- Some flags don't work with
gcc-4.8
, so I've changedCC
togcc-4.2
installed usingbrew install apple-gcc42
.
- The libs can be found as
liblcthw.a
andliblcthw.so
in./build
.
- MIT License found in LICENSE