if i have this
Code:
void ll_print(llnode **head){
while((*head).next!=NULL)
printf("%s\n",(*head).item);
}
where
Code:
struct llitem{
char item[200];
struct llitem *next;
};
typedef struct llitem llnode;
why do i get this error?
llist.c:13: error: request for member ‘next’ in something not a structure or union
llist.c:14: error: request for member ‘item’ in something not a structure or union
and how do would i go about accessing next or item?