C/ctype.h/islower
Версия от 17:20, 25 мая 2010; (обсуждение)
int islower(int ch)
<source lang="cpp">
//Declaration: int islower(int ch); //Return: returns 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 .
- /
</source>