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);
         }

Seealso:



This page last updated on Fri Nov 30 10:48:32 MSK 2001
Copyright © 1992-2001, Vitaly Filatov, Moscow, Russia
Webmaster