int isalnum( int ch );//檢查字元是否為字母或數字
int isalpha( int ch );//檢查字元是否為字母
int islower( int ch );//檢查字元是否為小寫
int isupper( int ch );//檢查字元是否為大寫字元
int isdigit( int ch );//檢查字元是否為數字
int isxdigit( int ch );//檢查字元是為十六進製制數字
int iscntrl( int ch );//檢查字元是否為控制字元
int isgraph( int ch );//檢查字元是否為圖形字元
int isspace( int ch );//檢查字元是否為空白符
int isblank( int ch );//檢查字元是否為空格符
int isprint( int ch );//檢查字元是否為列印字元
int ispunct( int ch );//檢查字元是否為標點符
int tolower( int ch );//轉換字元為小寫
int toupper( int ch );//轉換字元為大寫
cctype標頭檔案
cctype.h是字元處理標頭檔案。其宣告一組功能,以分類和轉換單個字元。這些函式以字元的值作為引數,返回另乙個字元或者布林值或者代表布林值的int型。字元分類功能 他們檢查作為函式引數傳遞的字元是否特定型別。函式功能 isalnum 檢查字元是否為字母數 isalpha 檢查字元是否為字母 isb...
C 標準庫之cctype
c 語言下 標頭檔案 include 說明 字元處理庫 功能一 字元測試 1 函式原型均為int is x int 2 引數為int,任何實參均被提公升成整型 3 只能正確處理處於 0,127 之間的值 功能二 字元對映 1 函式原型為int to x int 2 對引數進行檢測,若符合範圍則轉換,...
cctype標頭檔案中的操作
isalnum c 當c是字母或數字時為真 isalpha c 當c是字母時為真 iscntrl c 當c是控制字元時為真 isdigit c 當c是數字時為真 isgraph c 當c不是空格但可列印時為真 islower c 當c是小寫字母時為真 isprint c 當c是可列印字元時為真 即c...