Pay attention carefully because this is a hell of a question ;-)
I want to use template functions for generic collection actions (like search, foreach, etc.) in C wh
If you are on Linux/BSD Unix, take a look at queue(3) and check into /usr/include/sys/queue.h - it's been done before :)
/usr/include/sys/queue.h