home *** CD-ROM | disk | FTP | other *** search
/ ARM Club 1 / ARM_CLUB_CD.iso / contents / apps / clib / progs / utilslib / utils_old / c / Strupper < prev   
Encoding:
Text File  |  1994-02-22  |  318 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.