C style for linked list implementation and unit testing.
authorPat Thoyts <patthoyts@users.sourceforge.net>
Fri, 18 Jun 2010 23:57:10 +0000 (00:57 +0100)
committerPat Thoyts <patthoyts@users.sourceforge.net>
Fri, 18 Jun 2010 23:57:10 +0000 (00:57 +0100)
commit5a7e2d503884b23db1da2f99bd64a66c975df272
tree9c0a2ada1243095b1c40a185cb0fcbaf4373177d
parentaece36a790e8efc9697f63b553cd277f02376a8e
C style for linked list implementation and unit testing.
This removes a memory leak in the swap and sort functions. Also an off
by one error in the push function.
Ensure the sort does so by alpha and then size.

Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net>
src/linked.c
src/linked.h
src/unittest.h