home *** CD-ROM | disk | FTP | other *** search
/ Atari FTP / ATARI_FTP_0693.zip / ATARI_FTP_0693 / Mint / mntlib32.zoo / strupr.c < prev    next >
C/C++ Source or Header  |  1993-05-23  |  325b  |  20 lines

  1. /* hohmuth 1-Nov-92, derived from strlwr.c */
  2. #include <ctype.h>
  3.  
  4. char *strupr(string)
  5. register char *string;
  6. {
  7.     register char *p = string;
  8.  
  9.     if(p)
  10.     {
  11.         while(*string)
  12.         {
  13.             if(islower(*string))
  14.                 *string = toupper(*string);
  15.             ++string;
  16.         }
  17.     }
  18.     return(p);
  19. }
  20.