Skip to content

Instantly share code, notes, and snippets.

@ungood
Created May 23, 2013 02:37
Show Gist options
  • Save ungood/5632446 to your computer and use it in GitHub Desktop.
Save ungood/5632446 to your computer and use it in GitHub Desktop.
Very simple linked list example
typedef struct {
string name;
node* next;
} node;
node* first = null;
void append(string name) {
new_node = new linked_list {
name = name,
next = first
};
first = new_node;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment