tgetent core dump on sco xenix

Chip Rosenthal chip at vector.UUCP
Tue Jul 5 06:49:08 AEST 1988


{{{ The original article was in comp.sources.d too. }}}

In article <3222 at bigtex.uucp> you write:
}IN article <701 at nod2sco>, rosso at sco.COM (Ross Oliver) wrote:
}> Here are a few tips to avoid problems like this in large-model
}> 286 programs:
}>     - Declare your functions' return values.
}>     - Don't use "0" to mean NULL ( i.e. (char *)0 ).
}
}This last statement is incorrect, or rather, evidence of a broken
}compiler.

XENIX does the right thing.  You can do (char *) assignments and
comparisons with zero.  I still agree with the statement as a matter
of style, but that's a diatribe better left for comp.lang.c :-(.
-- 
Chip Rosenthal /// chip at vector.UUCP /// Dallas Semiconductor /// 214-450-0400
{uunet!warble,sun!texsun!rpp386,killer}!vector!chip
I won't sing for politicians.  Ain't singing for Spuds.  This note's for you.



More information about the Comp.unix.xenix mailing list