### strupr -- Convert Lowercase to Uppercase

Format

>     <string.h>
>     char *strupr(char *string);

Language Level: Extension
strupr converts any lowercase letters in string to uppercase. Other characters are not affected.

Return Value
strupr returns a pointer to the converted string. There is no error return.

Example
This example makes a copy in all-uppercase of the string DosWrite for OS/2, and "Win32" for Windows, and then prints the copy.

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

    int main(void)
    {
       char *string = "Hello World!";
       char *copy;

       copy = strupr(strdup(string));
       printf("This is a copy of the string with all letters capitalized: %s\n",
              copy);
       return 0;

       /**************************************************************************
          The output should be:

          This is a copy of the string with all letters capitalized: HELLO WORLD!
       **************************************************************************/
    }

strlwr -- Convert Uppercase to Lowercase
_toascii - _tolower - _toupper -- Convert Character
tolower() - toupper() -- Convert Character Case
towlower - towupper -- Convert Wide Character Case
<string.h>