Starai facendo :
codice:
if(stringa=="messaggio")
Invece di:
codice:
if(!strcmp(stringa,"messaggio"))