Possible Duplicate:
Standard data structure library in C?
Does C have any data structure implementations similar to the C++ STL? Specifically associative containers, hash maps or any other structure with approximately constant time retrieval?
Thanks!
C can’t have an “exact equivalent” of STL because C doesn’t have templates or classes.
You might be interested in the “Glib collections” library:
http://www.ibm.com/developerworks/linux/tutorials/l-glib/
Gnome Glib: http://developer.gnome.org/glib/stable/
GNU Gnulib: http://www.gnu.org/software/gnulib/