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

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