What are the common libraries for C?

C ++ has STL, while Boost and C # have the .net Framework library. Similarly, what are the most common libraries useful to a C programmer? (Except the standard C library).

I am looking for most of the features available in STL: containers (vectors, linked lists, trees, a hash table), algorithms (sorting, searching), input / output files, and strings.

Ideally, the library should be open source, run on Windows (cross-platform in order) and actively used.

+7
source share
3 answers

The closest I know if glib is from GTK, see http://library.gnome.org/devel/glib/2.26/

+5
source

If you need general-purpose data structures like STL, glib is probably the answer to your question. But the best question might be, why are you writing your program in C? The potential for radiance comes when you do not use overly general code to perform tasks that can be better accomplished in ways specific to your particular task. glib just gives you "C ++ with ugly syntax" (and fewer options for optimizing the compiler).

+5
source

Yes. GLib is the closest to STL in C. If you find it quite difficult to use, try Valu. It is much simpler. http://live.gnome.org/Vala

+1
source

All Articles