I'm in doubt on a line of code:
if(strcmp(novo->nome,aux->nome)>=0)
How does your comparison work? Being that the name is a char!
I'm in doubt on a line of code:
if(strcmp(novo->nome,aux->nome)>=0)
How does your comparison work? Being that the name is a char!
The strcmp method tests the equality of the Strings.
The method declaration is as follows:
int strcmp ( const char * str1, const char * str2 );
So, it returns an integer.
So, in your code, it will go into if's scope when novo->nome
is equal to or greater than aux->nome