tgetent core dump on sco xenix
James Van Artsdalen
james at bigtex.uucp
Mon Jul 4 12:01:27 AEST 1988
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.
C requires that the integer constant 0 be assignable to *any* pointer
type. C also requires that any pointer type may be compared with the
integer constant 0. If the Xenix compiler requires that the integer
constant 0 be cast to a pointer type first, it is broken.
--
James R. Van Artsdalen ...!ut-sally!utastro!bigtex!james "Live Free or Die"
Home: 512-346-2444 Work: 328-0282; 110 Wild Basin Rd. Ste #230, Austin TX 78746
More information about the Comp.unix.xenix
mailing list