Mail Archives: djgpp/1994/10/31/01:55:12
Anton.Helm asks:
Hi !
I would like to know what
strcat(a, b);
should do when b happens to be NULL.
DJ gives the short answer (in DJGPP, NULL arguments to string
functions are illegal), I give a long rationale elsewhere.
I assume it should do nothing at all. Until v1.11m5 it did nothing, but
Not true. I have seen GPFs associated with passing NULL pointers to
string functions ever since I first tried to build imake under DJGPP
1.09 (well, I'm sure it GPFed under 1.10), QEMM (no QDPMI), and
DESQview/X.
--Steve
- Raw text -