Advertisement
Advertisement


Good STL-like library for C


Question

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

2008/09/10
1
47
9/10/2008 6:13:55 PM

Accepted Answer

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

IBM developer works has a good tutorial on its use: Manage C data using the GLib collections

2014/04/24
37
4/24/2014 6:52:28 AM


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

2008/09/01

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

2009/07/01

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!

2009/11/21

Source: https://stackoverflow.com/questions/2540
Licensed under: CC-BY-SA with attribution
Not affiliated with: Stack Overflow
Email: [email protected]