Skip to content

Instantly share code, notes, and snippets.

View gtklocker's full-sized avatar

Kostis Karantias gtklocker

View GitHub Profile
@gtklocker
gtklocker / linked-lists.c
Created June 1, 2012 19:11
Doubly linked list implementation in C
/*
* An implementation of doubly linked lists in C.
*
* API:
* * init()
* Initializes a doubly linked list and returns it.
* * push( list, value )
* Appends a new element with value to the list.
* * destroy( list, value )
* Destroys the first element with value found in the list.