C Reference Lower Case Letter Test: islower()
The islower() function returns a non-zero if its argument is a lowercase letter. If the argument is not a lowercase letter, then zero is returned.
islower() source code example:
#include<stdio.h>
#include<ctype.h>
int main()
{
char a;
scanf( "%c", &a );
if( islower(a) )
printf( "Is lower case: %c\n", a );
else
printf( "Is NOT lower case: %c\n", a );
return 0;
}
This entry was posted in C Reference ctype.h Functions.
You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a response, or trackback from your own site.
Tweet This! or use
to share this post with others.