這篇博客用來收集C/C++中一些常用的庫函數。
1、字符判斷函數
isalnum() 如果參數爲字母數字,則返回ture
isalpha() 如果參數爲字母,則返回ture
iscntrl() 如果參數爲控制字符,則返回ture
isdigit() 如果參數爲數字(0-9),則返回ture
isgraph() 如果參數爲空格之外的打印字符,則返回ture
islower() 如果參數是小寫字母,則返回ture
isprint() 如果參數爲打印字符,包括空格,則返回ture
ispunct() 如果參數爲標點符號,則返回ture
isspace() 如果參數爲標準空白字符(空格,進紙,換行符,回車,水平製表符,垂直製表符),則返回ture
isupper() 如果參數爲大寫字母,則返回ture
isxdigit() 如果參數爲十六進制數,則返回ture
tolower() 如果參數爲大寫字母,即轉化爲小寫字母,否則返回原值
toupper() 如果參數爲小寫字母,即轉化爲大寫字母,否則返回原值