Skip to content

Instantly share code, notes, and snippets.

@fabianosalles
Created November 27, 2019 21:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fabianosalles/d47b3880c3ac25ac1343e11d2e9da758 to your computer and use it in GitHub Desktop.
Save fabianosalles/d47b3880c3ac25ac1343e11d2e9da758 to your computer and use it in GitHub Desktop.
typedef struct _node {
void *data;
struct _node *next;
} Node;
typedef struct {
int count;
int data_size;
Node *head;
Node *tail;
} List;
List* list_create(int dataSize);
void list_destroy(List *list);
void list_add(List *list, void *data);
void list_remove(List *list, int index);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment