Skip to content

Instantly share code, notes, and snippets.

@blackball
Created February 20, 2012 06:39
Show Gist options
  • Save blackball/1868151 to your computer and use it in GitHub Desktop.
Save blackball/1868151 to your computer and use it in GitHub Desktop.
/* Simple linked-list demo */
typedef struct node{
void *data;
struct node *next;
struct node *prev;
} node;
node* create(node **ns, void *data);
node* search(node **ns, void *data);
void insert(node **ns, void *data);
void remove(void *data);
void destroy(node **ns);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment