Question about toupper and tolower

Guy Harris guy at rlgvax.UUCP
Sat Nov 12 00:43:25 AEST 1983


Turning the 040 bit on and off will correctly map a mixed-case alphabetic
string to one case, but it will not work on all non-alphabetic characters.
If one is not guaranteed that the string does not contain those characters,
one would still have to do an isalpha() on the character before mapping.

	Guy Harris
	{seismo,ihnp4,allegra}!rlgvax!guy



More information about the Comp.lang.c mailing list