I want to compare two strings:
The first string is declared above my main:
char _newState[] = "AVAILABLE";
When I want to compare with a const string, i put the line:
if(strcmppgm2ram((const char *) "AVAILABLE", _newState ) == 0){
code:
}
The function never returns a zero, what is the solution and the right typecast? strcmp is the same problem!