Here's the guts of a linked list.




typedef struct node
{
struct node *next;
struct node *prev;
void *data; /* could be anything, just a pointer to hang the payload off */