I have a function that checks if a character is an alphabet or not. It returns 1 if it is and 0 otherwise. According to the assignment, the use of the function isAlpha() from the standard library is not allowed
My question is:
Is there a better way to write this if statement
{
if (c <= 122 &&
c != 91 &&
c != 92 &&
c != 93 &&
c != 94 &&
c!= 95 &&
c != 96 &&
!(c > 122) &&
!(c < 65))
{
return 1;
}
else
{
return 0;
_putchar(c);
}
return 0;
}```