home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Interactive Guide
/
c-cplusplus-interactive-guide.iso
/
c_ref
/
csource3
/
187_01
/
strupper.c
< prev
next >
Wrap
C/C++ Source or Header
|
1986-02-26
|
905b
|
28 lines
/*@*****************************************************/
/*@ */
/*@ strupper - change all letters in a string to */
/*@ upper case. */
/*@ */
/*@ Usage: strupper(str); */
/*@ where str is a string. It is converted in */
/*@ place. */
/*@ */
/*@ Result: It returns the address of str. */
/*@ */
/*@ */
/*@*****************************************************/
strupper(str)
char *str;
{
char *save;
save = str;
while (*str) {
*str = toupper(*str);
str++;
}
return save;
}