Comment on Why does isalpha() fail to identify an alphabetic character?

jjagaimo@lemmy.ca ⁨11⁩ ⁨months⁩ ago

isalpha documentation:

Return value

Non-zero value if the character is an alphabetic character, zero otherwise.

You should be either checking for not equal to 0 instead of true, as its not necessarily guaranteed to be 1 ~= true

Also make sure that your loop condition is < and not <

For more information, make sure to check the documentation for the standard library functions

source
Sort:hotnewtop