Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the most popular generic collection data structure library for C?

I'm looking for a C library that provides generic collection data structures such as lists, associative arrays, sets, etc. The library should be stable and well tested. I'm basically looking for something better than the crappy C standard library.

What C libraries fit this description?

EDIT: I'd prefer that the library was cross-platform, but failing that, anything that works on Mac/Linux.

like image 583
Tom Dalling Avatar asked Jun 12 '10 06:06

Tom Dalling


People also ask

What is data structure in C?

Data Structures in C are used to store data in an organised and efficient manner. The C Programming language has many data structures like an array, stack, queue, linked list, tree, etc. A programmer selects an appropriate data structure and uses it according to their convenience.

What is generic library?

The generic data structure library is a bunch of data structures that are designed and created in as generic a fashion as possible. Each data structure will contain its own basic memory management, be able to handle any object type, and hopefully constraint to strict algorithmic constraints.

Which data structure is used in library?

JDSL is the Data Structures Library in Java. It is a collection of Java interfaces and classes that implement fundamental data structures and algorithms, such as: sequences, trees, priority queues, search trees, hash tables.

Is there a stack library in C?

The pop and return external functions are provided with the argument stack library. The pop external functions are described below according to the data type of the value that each pops from the argument stack. The return external functions are described in Return functions for C.


1 Answers

if you are on linux, i would use GLIB. it provides all the helper libraries you would expect, plus its very well maintained and very active (always a +). the link above is straight to the section on data structures, but there is plenty of other things in GLIB so take a look around!

like image 101
luke Avatar answered Sep 27 '22 22:09

luke