C - !isalpha treate character of type unsigned char as not alphabetic

前端 未结 0 1404
礼貌的吻别
礼貌的吻别 2021-02-07 03:13
bool checkString( const char inputString[] ){
   
unsigned char inputChar;

bool errorFree = true;

while ( ( inputChar = *inputString ) ){

    if(!isalpha(inputChar)){         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题