Hello,
Can anyone briefly explain how do these two commands work ?
isdigit and isalpha .. Ofcourse I read online sources before asking the question, but unfortunately I tried them and didnt get them to work.
What is the simplest way ?
I know it gives back a value, so im assuming I can use it like this :
if(isdigit(someinput)==1)
return -1;
Is that correct ? can I use this for any number ? Can I compare it with a float number ? Can I compare arrays ?
Can I also use it when scanning documents or files ?
For example, if I want to scanf a text file that has numbers and letters, and determine is what im scanning (isdigit) or (isalpha) ??
Thanks :)