I am having a problem with my code to convert from 'void *' to 'NODE *'
Can anyone help me get around this problem?
NODE *list_create(void *data)
{
NODE *node;
if(!(node = malloc(sizeof(NODE)))) return NULL;
node->data=data;
node->next=NULL;
return node;
}
I get the error right underneath the = sign. Any help would be greatly appreciated!