• Some users have recently had their accounts hijacked. It seems that the now defunct EVGA forums might have compromised your password there and seems many are using the same PW here. We would suggest you UPDATE YOUR PASSWORD and TURN ON 2FA for your account here to further secure it. None of the compromised accounts had 2FA turned on.
    Once you have enabled 2FA, your account will be updated soon to show a badge, letting other members know that you use 2FA to protect your account. This should be beneficial for everyone that uses FSFT.

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