home *** CD-ROM | disk | FTP | other *** search
/ ARM Club 1 / ARM_CLUB_CD.iso / contents / apps / clib / progs / utilslib / c / Strupper < prev    next >
Encoding:
Text File  |  1991-04-20  |  304 b   |  20 lines

  1. /* C.Strupper: map an entire string to upper case */
  2.  
  3. #include <ctype.h>
  4. #include "utils.h"
  5.  
  6. char *strupper (char *str)
  7. {
  8.         register char *temp;
  9.  
  10.         temp = str;
  11.  
  12.         while ( *temp )
  13.         {
  14.                 *temp = toupper(*temp);
  15.                 ++temp;
  16.         }
  17.  
  18.         return str;
  19. }
  20.