I'm still getting used to C, i'm writing a basic linear linked list. Am I correct in assuming that the best coarse of action is to create a "free list" routine. I mean, i can't just free the head pointer and forget about the list right? One more thing, If im allocating memory for the node, and I want to store a string in that node, I have to allocate memory for the string too right? THANKS



LinkBack URL
About LinkBacks


