home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Interactive Guide
/
c-cplusplus-interactive-guide.iso
/
c_ref
/
csource4
/
273_01
/
upcase.cc
< prev
next >
Wrap
Text File
|
1987-09-27
|
222b
|
11 lines
#include <ctype.h>
upcase(char *str)
/* This will convert the string pointed to by *str to uppercase */
{
while (*str) {
if (islower(*str))
*str = toupper(*str);
str++; }
return(0);
}