![christos](/assets/img/avatar_default.png)
side. Sometimes it was compared to int, which was -1 on EOF, and on unsigned char machines UPEOF was (unsigned char)-1. This worked by chance because isalpha((unsigned char)-1) returns false usually, but it does not when the locale is invalid!
side. Sometimes it was compared to int, which was -1 on EOF, and on unsigned char machines UPEOF was (unsigned char)-1. This worked by chance because isalpha((unsigned char)-1) returns false usually, but it does not when the locale is invalid!