make the list a type itself

master
orange 12 years ago
parent 7f85731e5e
commit 469f5a7da3

@ -94,6 +94,7 @@ int main(int argc, char *argv[]) {
printf("list_length = %d\n", list_length(emptylist));
list_t *foolist = malloc(sizeof(list_t));
list_init(foolist);
list_node_t foo = { 1, NULL };
list_add(foolist, &foo);

Loading…
Cancel
Save