home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power-Programmierung
/
CD1.mdf
/
magazine
/
drdobbs
/
c_spec
/
sources
/
cptolow.c
< prev
next >
Wrap
Text File
|
1986-02-20
|
308b
|
13 lines
char *cptolower( dest, src )
register char *dest, *src;
{
/* Copy src to dest, mapping all upper case letters to lower
* case. src and dest may be the same.
*/
for(; *src ; src++ )
*dest++ = ('A' <= *src && *src <= 'Z')
? *src + ('a'-'A') : *src ;
*dest = '\0' ;
return dest ;
}