C: Common Frameworks/Libraries

假装没事ソ 提交于 2019-11-30 05:05:06

问题


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?


回答1:


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...



回答2:


The Apache portable runtime project

http://apr.apache.org/

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

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