请输入您要查询的百科知识:

 

词条 islower
释义

islower(测试字符是否为小写字母)

相关函数

isalpha,isupper

表头文件

#include<ctype.h>

定义函数

int islower(int c)

函数说明

检查参数c是否为小写英文字母。

返回值

若参数c为小写英文字母,则返回TRUE,否则返回NULL(0)。

附加说明

此为宏定义,非真正函数。

范例

#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\",str[i]);

}

执行

s is a lower-case character

e is a lower-case character

随便看

 

百科全书收录4421916条中文百科知识,基本涵盖了大多数领域的百科知识,是一部内容开放、自由的电子版百科全书。

 

Copyright © 2004-2023 Cnenc.net All Rights Reserved
更新时间:2025/3/30 10:17:54