Help with Linked Lists in C!

dbaldus

Gawd
Joined
Jul 12, 2005
Messages
563
I am programming in C and I want to use a Linked List to store some data for my program, but I don't want to have to write the add, remove, search, etc. functions for it. I am relatively new to this language, but I have done lots of programming in Java and usually just use the Linked List from the Java Collections Framework. I'm just wondering if there is something like that for C?

Basically, I'm looking for something where I could be like #include<LinkedLists.h> and then I would be able to use all of the functinality of that class (add, remove, search, etc.) instead of having to make my own. Is there something like this for C?

Thanks!
 
Plenty of things like that out there - the right one to use depends on what environment you're programming in. If you're in Linux, GLib (part of GTK+, the Gnome GUI framework) has a number of data structrures - I'm sure most other toolkits and environments provide similar functionality.

A quick trip to the goog turned this up : http://home.gna.org/gdsl/ - it might fit your needs if you're (mostly) coding from scratch.
 
Back
Top