14

Possible Duplicate:
Why there is not a comprehensive c archive network?

Everyone knows that C is very small language, it has just language primitives and almost no standard library (no data structures or algorithms).

Therefore I have a question, how do I find good C libraries for data structures, algorithms and perhaps system programming?

For example, if I need a hash-table, how do I find a good implementation? Or for example, if I need to work with graphs, what do I do?

So far I have been writing everything myself. But my hash table implementation is nowhere good enough. It's very basic.

What do advanced C programmers do with this problem? Do they really write all the libraries again themselves?

Thanks, Boda Cydo.

Community
  • 1
  • 1
bodacydo
  • 75,521
  • 93
  • 229
  • 319

5 Answers5

6

GLib.

Ken
  • 2,886
  • 20
  • 11
3

There really isn't anything as "go to" as Boost in C++ (STL doesn't count as its part of the standard).

Beyond GLib, there is APR

Hack-R
  • 22,422
  • 14
  • 75
  • 131
Yann Ramin
  • 32,895
  • 3
  • 59
  • 82
1

http://directory.fsf.org/category/clibs/

Robert Harvey
  • 178,213
  • 47
  • 333
  • 501
1

http://ccan.ozlabs.org/

EDIT: CCAN has moved domains to https://ccodearchive.net/

Spudd86
  • 2,986
  • 22
  • 20
0

There isn't any set way.... there's just a proliferation of all kinds of frameworks out there. Often there is different forces on what people want, eg, depending if its for embedded systems, PCs, flavor of OS, or whatever.

Keith Nicholas
  • 43,549
  • 15
  • 93
  • 156