-
islower
鎖定
islower是一個計算機函數,檢查參數c是否為小寫英文字母。適用領域C++,C,Python。
- 中文名
- islower函數
- 表達式
- int islower(int c);
- 適用領域
- C++,C,Python
- 應用學科
- 計算機編程
- 類 型
- 字符串函數
- 相關函數
- isdigit(),isupper()
islower簡介
相關函數
isalpha,isupper
表頭文件
#include<ctype.h>
定義函數
int islower(int c)
返回值
若參數c為小寫英文字母,則返回TRUE,否則返回NULL(0)。
附加説明
此為宏定義,非真正函數。
islower範例
#include<ctype.h> main() { char str[]="123@#FDsP[e?"; int i; for(i=0;str[i]!=0;i++) if(islower(str[i]))printf("%c is a lower-case character\n",str[i]); }
執行
s is a lower-case character
e is a lower-case character
- 詞條統計
-
- 瀏覽次數:次
- 編輯次數:14次歷史版本
- 最近更新: z84668520