複製鏈接
請複製以下鏈接發送給好友

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