Copyright © tutorialspoint.com

C - islower function

previous

Synopsis:

#include <stdio.h>

int islower(int c); 

Description:

The function returns nonzero if c is any of:

a b c d e f g h i j k l m n o p q r s t u v w x y z

Return Value

The function returns nonzero if c is lower case otherwise this will return zero which will be equivalent to false.

Example

#include <stdio.h>

int main() {

  if( islower( 'a' ) )
  {
     printf( "Character a is lower case\n" );
  }
  if( islower( 'A' ) )
  {
     printf( "Character A is lower case\n" );
  }
  return 0;
}

It will proiduce following result:

Character a is lower case

previous

Copyright © tutorialspoint.com