home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Between Heaven & Hell 2
/
BetweenHeavenHell.cdr
/
100
/
74
/
case.c
< prev
next >
Wrap
Text File
|
1985-12-07
|
403b
|
29 lines
/* case.c: convert strings to one case */
#include <stdio.h>
#include <ctype.h>
char *strupper(s,t)
char *s, *t;
{
register char *p;
strcpy(s,t);
for (p = s ; *p ; ++p)
*p = toupper(*p);
return s;
}
char *strlower(s,t)
char *s, *t;
{
register char *p;
strcpy(s,t);
for (p = s ; *p ; ++p)
*p = tolower(*p);
return s;
}