I would like to exit the program when my argv[1] contains some character other than alphabet. Therefore, I stated:
for(int j = 0, p = strlen(argv[1]); j < p; j++)
{
if (false(isalpha(argv[1][j])))
{
printf("invalid character\n");
return 1;
}
}
but it says error: called object type 'int' is not a function or function pointer. I don't understand what this means. This was from the CS50 week2's problem - substitution.