void** list_to_array(list_t* list, unsigned* n) { void** arrlist = NULL; *n = 0; /* pointer to the first node */ list_t* samelist = NULL; samelist = list; //this is line 158