woohops, just noticed that there's a lite-c contributions thread-containing-thingy... well, could someone move the thread?
anyway, here's a usage example:
Code:
llist *list = new_llist();
char foo[] = "test", fuzz[] = "schnarch";
int *arr = (int*)malloc(20000*sizeof(int));
llist_add(list, &foo);
llist_add(list, &fuzz);
llist_add(list, &arr);
size_t size = llist_size(list); // returns 3
char *test = (char*)llist_get(list, 0); // returns "test"
signed long int v = llist_index_of(list, &fuzz); // returns 1
llist_delete(list, 0); // returns true
size = llist_size(list); // returns 2
int *test2 = (int*)llist_get(list, llist_index_of(list, &arr)); // returns the allocated memory
free(list);