home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Monster Media 1994 #1
/
monster.zip
/
monster
/
PROG_C
/
SNIP9404.ZIP
/
STRUPR.C
< prev
next >
Wrap
C/C++ Source or Header
|
1994-04-03
|
465b
|
30 lines
/*
** Portable, public domain strupr() & strlwr()
*/
#include <ctype.h>
char *strupr(char *str)
{
char *string = str;
if (str)
{
for ( ; *str; ++str)
*str = toupper(*str);
}
return string;
}
char *strlwr(char *str)
{
char *string = str;
if (str)
{
for ( ; *str; ++str)
*str = tolower(*str);
}
return string;
}