Created
February 20, 2012 06:39
-
-
Save blackball/1868151 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 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