Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Turbo C - <b>strupr() convert string to uppercase</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
strupr()                 Convert String to Uppercase

 #include   <string.h>                   Required for declarations only

 char       *strupr(string);
 char       *string;                     String to be capitalized

    strupr() converts lowercase letters in 'string' to uppercase.

    Returns:    A pointer to the converted string.  There is no error
                return.

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

    The following statements convert all lowercase letters to uppercase
    before printing the string.

         #include <string.h>
         #include <stdio.h>

         char *string = "convert this string to uppercase";
         char *strptr;

         main()
         {
              strptr = strupr(string);
              printf("%s",strptr);
         }

See Also: strlwr()

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