Is there a good example of how toupper() works?

Jeffrey T. Hutzelman jh4o+ at andrew.cmu.edu
Thu Oct 18 00:40:25 AEST 1990


Try this one:

void strupper(char *str)
{
for (;*str!='\0';str++)
	*str=toupper(*str);
}
-----------------
Jeffrey Hutzelman
America Online: JeffreyH11
Internet/BITNET:jh4o+ at andrew.cmu.edu, jhutz at drycas.club.cc.cmu.edu,
                jh4o at cmuccvma

>> Apple // Forever!!! <<



More information about the Comp.lang.c mailing list