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>_tolower() convert 'c' to lowercase (macro)</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 _tolower()              Convert 'c' to Lowercase (Macro)

 #include   <ctype.h>

 int        _tolower(c);
 int        c;                           Character to be converted

    _tolower() converts 'c' to lowercase. _tolower() is a macro.  It
    should be used only if you know that 'c' is an uppercase letter, as
    the result is undefined otherwise.

       Returns:     The converted character 'c'. There is no error
                    return.

         Notes:     Use tolower() to convert a character that is not
                    necessarily an uppercase letter.

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

    The following statements convert a string to lowercase before
    printing it.

           #include <ctype.h>
           #include <stdio.h>

           char string[15] = "ALPHABET";
           int x;

           main()
           {
               for (x = 0; x < strlen(string); x++)
                   printf("%c",_tolower(string[x]));
               printf("\n");
           }


See Also: islower() isupper() tolower()

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