this is what i was thinking.
void neuter(CAT *this_cat) // you dont need to return an int.
{ // note also, we can call the char pointer any name
// we want as long as we're consistent in its use.
if (strcmp(this_cat->name, "Betty") == 0)
{
printf("Hey get off me you crazy freak, my name is Betty! Duh??\n");
this_cat->neuter = TRUE; // for lack of a better category
}
else if (this_cat->neutered == TRUE) // already neutered
{
printf("Yo, you best open your eyes and step off my grill, dawg!\n");
}
else if (this_cat->neutered == FALSE) // now it's party time
{
printf("RRRRROOOWWWWLLL! PFFFZZZZTTT! YOOWwwwlll...\n");
this_cat->neuter = TRUE; // and the deed is done :-(
}
return; // no need to return an int,
// the struct is already modified
}