Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

How can I do this?

Name: Joints, Simon Peyote 2008-03-25 17:22

I want to create a linked list data-structure in C, but I do not want to have to malloc any memory. Is it possible to do this in a way that makes it simple to traverse and add to the list?

Regards,

Simon Peyote Joints

Name: Anonymous 2008-03-25 17:33

Actually, it's quite simple. Let's say you have your initial linked list statically declared in your source file. When you add an element to the list, your program will just have to edit it's own source file to add the new element, then call gcc and execlp the new executable (don't forget <unistd.h> !).

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List