Mail Archives: djgpp/1998/09/11/23:43:07
I found a some discussion in the archives, but no resolution. Just for
my clarification:
1. strcmp against a null will fail, causing a segfault under cwsdpmi,
perhaps not if using the Win95 dpmi.
2. this is a djgpp feature or misfeature, and not a bug.
3. ported packages that assume a graceful failure of strcmp will need a
test of parameters, and some additional logic to handle the null.
4. ANSI C does not stipulate that strcmp should handle nulls.
Hacking around the problem is no big deal, I just want to have my ducks
in a row before I bring the problem back to the maintainers of the
package in question.
- Raw text -