I have this struct
typedef struct no
{
char command[MAX_COMMAND_LINE_SIZE];
struct no * prox;
} lista;
lista *listaCommand = NULL;
and I'm filling listaCommand with a simple function that seems to work ok, as I can read the values without any problem, but if I try to compare, like
strcmp(listaCommand->prox>command, ">")
I just get a segmentation fault, even though the value > is there, why this is happening?