是否有一个很好的C语言的集合库? [英] Is there a good collection library for C-language?
问题描述
可能重复:
C的容器类/库
甚至开发我们的遗留系统的C代码。是否有良好的集合库将支持Java / C#(新版本)样式集合。 Hashtable,HashSet等。当然没有对象,但有structs。 HashTable对strings和ints的键限制不是问题。这不会是坏的,如果它是免费的,甚至商业用途。我回到C从C#,我必须说,我郁depressed使用我们自己的库和一般的语言。我们使用VS2005和MS 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.
谢谢& BR -Matti
Thanks & BR -Matti
推荐答案
我热烈推荐 glib ,位于GTK + widget工具包下面的通用库。非常好。
I warmly recommend glib, the general-purpose library that lies underneath the GTK+ widget toolkit. It's excellent.
这篇关于是否有一个很好的C语言的集合库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!