跳至主要內容

islower


islower

函数原型

int islower(char c);

功能

判断字符c是否为小写英文字母

说明

当c为小写英文字母(a-z)时,返回非零值,否则返回零。

示例

void lower(char c)
{
    if (islower(c))
        printf("%c: 是小写英文字母\n", c);
    else
        printf("%c: 不是小写英文字母\n", c);
}

void main()
{
    SetScreen(0);
    lower('a');
    lower('A');
    lower('7');
    getchar();
}