Tutorials Point


  Learning C
  C Function References
  C Useful Resources
  Selected Reading

Copyright © 2014 by tutorialspoint



  Home     References     About TP     Advertising  

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 Printer Friendly

Advertisements


  

Advertisements