views:

1114

answers:

5

What are good libraries for C with datastructures like vectors, deques, stacks, hashmaps, treemaps, sets, etc.? Plain C, please, and platform-independent.

+25  A: 

The Glib library used on the Gnome project may also be some use. Moreover it is pretty well tested.

IBM developer works has a two part tutorial on its use: The wonders of GLib, Part 1, Part 2

Brendan
+2  A: 

There's some stuff in the Apache Portable Runtime (APR) that I'd expect to be very solid.

jmah
+2  A: 

Maybe http://sglib.sourceforge.net/ if you want an easy to use, very fast, macro based library.

Flavius Suciu
+1  A: 

If hash tables, extensible strings and dynamic vector are enough for your needs, please have a look at the library I put toghether: http://code.google.com/p/c-libutl/.

I also would welcome any feedback!

Remo.D