www.delorie.com/djgpp/bugs/show.cgi   search  
Bug 000050

When Created: 01/15/1996 08:15:13
Against DJGPP version: 2.00.beta1
By whom: wallacj@fhsmtp.fh.trw.com
Abstract: strchr() and strrchr() does not conform to the ANSI specification
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.

Solution added: 01/15/1996 08:16:40
By whom: wallacj@fhsmtp.fh.trw.com
Simply cast the integer to a char before the comparison.

Fixed in version 2.00.beta5 on 01/23/1996 22:00:46
By whom: dj@delorie.com



  webmaster   donations   bookstore     delorie software   privacy  
  Copyright 2010   by DJ Delorie     Updated Jul 2010