Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

islower - Test for lowercase letter

&pagelevel(4)&pagelevel

Definition

#include <ctype.h>

int islower(c);

islower checks whether the character c is a lowercase letter (a-z).
c is the value of the character to be checked.

Return val.

!= 0

0

c is a lowercase letter.

c is not a lowercase letter.

Note

islower is implemented both as a macro and as a function (see section “Functions and macros”).

Example

#include <ctype.h>
#include <stdio.h>
int main(void)
{
  int c;
  while((c = getchar()) != EOF)
    printf("%s : %c\n", ((islower(c)) ? "Lowercase letter" : "Other"), c);
  return 0;
} 

See also

isalnum, isascii, iscntrl, isdigit, isgraph, isalpha, isprint, ispunct, isspace, isupper, isxdigit,
isebcdic, iswlower