共用方式為


<cctype>

包含標準 C 程式庫標頭 < ctype.h > ,並將相關聯的名稱新增至 std 命名空間。

需求

Header: < cctype>

命名空間:std

備註

包含此標頭可保證,透過使用 Standard C 程式庫標頭中的外部連結所宣告的名稱會在 std 命名空間中宣告。

函式

int isalnum(int c);
int isalpha(int c);
int isblank(int c);
int iscntrl(int c);
int isdigit(int c);
int isgraph(int c);
int islower(int c);
int isprint(int c);
int ispunct(int c);
int isspace(int c);
int isupper(int c);
int isxdigit(int c);
int tolower(int c);
int toupper(int c);

另請參閱

標頭檔參考
C++ 標準程式庫概觀
C++ 標準程式庫中的執行緒安全