You can use the isalpha function.
EDIT: Your code seems to be in good way. Nevertheless, I will not do your work, but I can give you some clues!
- Check this tutorials to understand the if statement (you could also check the isalpha example).
- Don’t forget that argv is a 2 dimensional character array. So to get a specific character of an argument you can do:
argv[i][j]
- Check the return value of the isalpha function to test a character.
4
solved isalpha : If argv is not alphabets. How to conditionise? [closed]