if(parametro=="cane") non funzionerà mai, non puoi confrontare due stringhe con ==! Devi usare la funzione strcmp, inclusa in string.h!