home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / mint / lib / mntlib44.zoo / mntlib / strlwr.c < prev    next >
Encoding:
C/C++ Source or Header  |  1993-07-06  |  300 b   |  20 lines

  1. #include <ctype.h>
  2. #include <string.h>
  3.  
  4. char *strlwr(string)
  5. register char *string;
  6. {
  7.     register char *p = string;
  8.  
  9.     if(p) 
  10.     {
  11.         while(*string)
  12.         {
  13.             if(isupper(*string))
  14.                 *string = tolower(*string);
  15.             ++string;
  16.         }
  17.     }
  18.     return(p);
  19. }
  20.