I'm trying to compare a field of a struct that is holding a pointer of char with a pointer of char, but the comparison is not working.
typedef struct node{
char * word;
struct node * next;
int occurrence;
}No;
aux = list;
while(aux != NULL){
if(aux->word == token)
{
new_node->occurrence = new_node->occurrence+1;
exist = 0;
}
aux = aux->next;
}
list?