islower : islower « ctype.h « C Tutorial






ItemValue
Header filectype.h
Declarationint islower(int ch);
Returnreturns nonzero if ch is a lowercase letter; otherwise zero is returned.


#include <ctype.h>
  #include <stdio.h>

  int main(void)
  {
    char ch;

    for(;;) {
      ch = getchar();
      if(ch == '.'){
         break;
      }
      if(islower(ch)){
         printf("%c is lowercase\n", ch);
      }
    }

    return 0;
  }
1
2
b
b is lowercase
f
f is lowercase
r
r is lowercase
e
e is lowercase
d
d is lowercase
A
.








18.7.islower
18.7.1.islower