Ah yeah, that function was pretty incomplete. Thanks again for all the info.
For future reference (dunno if this could every be useful to someone else),
here is the fixed function:
void...
Type: Posts; User: kataya
Ah yeah, that function was pretty incomplete. Thanks again for all the info.
For future reference (dunno if this could every be useful to someone else),
here is the fixed function:
void...
I have considered moving to windows for C, but have yet to make the switch. I'll mess with GDB and see what I can find. Thanks for your help.
The test function has the following line:
myList.head = &myNode;
Where both myList and myNode have been declared.
Is that what you are referring to? That looks clean to me, but I'm also the...
I have the following function that adds a node to the front of a doubly-linked linked list.
#define HEAD list->head
#define TAIL list->head->prev
...
void add_front(llist* list, lnode*...
Ah nice, it compiles now. Thanks much for the fix and more so for the explanation.
Hello, I am making an application that implements doubly linked lists (each node has a pointer to the previous node and the next node), and I am am having trouble with the functions that service the...