Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Borland C++ 2.x ( with Turbo C ) - <b>islower() test for lowercase (macro)</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 islower()               Test for Lowercase (Macro)

 #include   <ctype.h>

 int        islower(c);
 int        c;                           Integer value to be tested

    islower() tests whether 'c' is lowercase ('a' - 'z').

       Returns:     True (nonzero) if the integer satisfies the test
                    condition or false (zero) if it does not.  The result
                    is undefined if 'c' is other than an ASCII character
                    or EOF.

         Notes:     islower() is a macro.

   -------------------------------- Example ---------------------------------

    The following statement tests whether the character read from a file
    is lowercase.

           #include <ctype.h>
           #include <stdio.h>               /* for fopen */

           int ch;
           FILE *stream;

           main()
           {
               if ((stream = fopen("input.dat","r+"))!= NULL) {
                   while (!feof(stream)) {
                       if (islower(ch = getc(stream)));
                    /* process character */
                   }
               }
           }


See Also: isalnum() isalpha() isascii() isspace() isupper()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson