C port of the code described here: http://www.codeofhonor.com/blog/avoiding-game-crashes-related-to-linked-lists
I implemented this to learn how the original works and to play around with C; don't use this code for anything serious.
Based on: https://github.com/webcoyote/coho/blob/master/Base/List.h