Salve, non riesco a confrontare 2 stringhe, una statica ed una immessa da tastiera.
Questo il codice:
codice:
c = read(STDIN, buf, sizeof(buf));

if ( c > 0 && strcmp(buf, "exit") != 0 ) {
	...
}
else if (strcmp(buf, "exit") == 0) {
	char* exit_msg = "...";
}
In pratica non entra mai nel "else if", perchè la variabile "buf" ha come valore "exit+un carattere strano"

Sapete dove sbaglio?