What are some common general purpose library as Boost is to C++ but for C? It should be a cross-platform library and include collections such as trees, linked-lists, queues, etc... What are the advantages/disadvantages to those libraries?
glib
is pretty nice because:
- liberally licensed (LGPL)
- constant development
- tons of data structures
- trees
- lists
- queues
- caches
- etc.
- good documentation
- lots of sample code
- development "assistance"
- logging
- thread abstraction
- thread pools
- test framework
- timers
- Unicode support
- many supported platforms
- regular expressions
- tons more...
The Apache portable runtime project
is good. Covers basic datastructures and is very good at network and IO abstraction. The later is a magnitude better then glib.
Unfortunately most document links on the apache websites are broken at the moment :-( But this one works work http://apr.apache.org/docs/apr/1.4/modules.html
来源:https://stackoverflow.com/questions/3623455/c-common-frameworks-libraries