[comp.sys.amiga.tech] Aztec C bug report: _toupper

greg@noel.CTS.COM (J. Gregory Noel) (02/09/90)

BUG: The #defines in <ctype.h> for _toupper and _tolower are reversed

Try the attached program:
----------- cut here
#include <Aztec:include/stdio.h>
#include <Aztec:include/ctype.h>
main(void)
{
	printf("This should print 'C': %c\n", _toupper('c'));
	printf("This should print 'c': %c\n", _tolower('C'));
	return 0;
}
----------- cut here

The bug also seems to infect (hmmmm, that was a typo for "affect" but it's
too good to remove) some of the library modules that might use _toupper() and
_tolower(); I get inconsistant results.
-- 
-- J. Gregory Noel, UNIX Guru       greg@noel.cts.com  or  greg@noel.uucp