问题
Possible Duplicate:
Container Class / Library for C
We have to maintain and even develop C-code of our legacy system. Is there good collection library that would support Java/C# (new versions) style collections. Hashtable, HashSet, etc. Of course without objects, but with structs. The HashTable key limitations to "strings" and ints is not a problem. It wouldn't be bad if it's free even for commercial use. I'm back to C from C# and I must say i'm depressed using our own libraries and the language in general. We're using VS2005 and MS C-compiler if that has nothing to do with anything.
Thanks & BR -Matti
回答1:
I warmly recommend glib, the general-purpose library that lies underneath the GTK+ widget toolkit. It's excellent.
回答2:
Here is a hashtable in C, and a more general library here
来源:https://stackoverflow.com/questions/2956387/is-there-a-good-collection-library-for-c-language