user295190
user295190

Reputation:

C: Common Frameworks/Libraries

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?

Upvotes: 5

Views: 663

Answers (2)

Lothar
Lothar

Reputation: 13093

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

Upvotes: 0

The Alchemist
The Alchemist

Reputation: 3425

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

Upvotes: 8

Related Questions