www.delorie.com/djgpp/bugs/show.cgi | search |
The ANSI specificatio states that the integer argument is converted to a char before the compare. The DJGPP library functions compare a *(char *) to an int which causes any integer between 128 and 255 to fail to find a match.
Simply cast the integer to a char before the comparison.
webmaster | delorie software privacy |
Copyright © 2010 by DJ Delorie | Updated Jul 2010 |