//------------------------------------------------ // void* package //------------------------------------------------ #include #include "llist.h" #define LEN 5 static char* string_data[] = { "zero", "one", "two", "three", "four", NULL }; bool printIntEl(void *el) { printf("%ld\n", (long int)el); return false; // indicate we should continue the iteration } bool printStringEl(void *el) { printf("%s\n", (char*)el); return false; // indicate we should continue the iteration } int main(int argc, char *argv[]) { LList myList = LList_init(&myList); //--------------------------------------------- // Usage with int's for (long int i=0; i