Path: utzoo!attcan!uunet!husc6!mailrus!ames!killer!vector!chip From: chip@vector.UUCP (Chip Rosenthal) Newsgroups: comp.unix.xenix Subject: Re: tgetent core dump on sco xenix Keywords: tgetent,core dump,sco,xenix,large model Message-ID: <414@vector.UUCP> Date: 4 Jul 88 20:49:08 GMT References: <54@libove.UUCP> <701@nod2sco> <3222@bigtex.uucp> Reply-To: chip@vector.UUCP (Chip Rosenthal) Distribution: comp Organization: Dallas Semiconductor Lines: 19 Summary: {{{ The original article was in comp.sources.d too. }}} In article <3222@bigtex.uucp> you write: }IN article <701@nod2sco>, rosso@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@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.