Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Zortech C++ 3.0r4 - <b>tolower</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
tolower
toupper

Usage

   #include <ctype.h>
   int tolower(int c);
   int toupper(int c);

   ANSI

Description


   tolower          converts any integer value c in the range of  A  -  Z  to

                    lower case.

   toupper          converts any integer value c in the range of  a  -  z  to
                    upper case.


   These are implemented as macros in ctype.h, and are also included as
   functions within the library. Undefining the macros, or not including
   ctype.h, will cause the library functions to be used.

Example 

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

   int main()
   {
       printf("Lowercase character [%c]\n",tolower(0x4d));
       return EXIT_SUCCESS;

   }

Return Value


   tolower          returns c, converted to lower case if it was upper case,
                    otherwise c is returned unchanged.


   toupper          returns c, converted to upper case if it was lower case,
                    otherwise c is returned unchanged.






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