Is there a good collection library for C-language? [duplicate]

£可爱£侵袭症+ 提交于 2020-01-21 18:49:50

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!