use of NULL

Chris Torek chris at mimsy.UUCP
Wed Feb 22 21:04:03 AEST 1989


>In article <16020 at mimsy.UUCP> I wrote:
>>...  Using 0 wherever NULL is strictly legal will always work.  Never
>>mind the fact that, by trickery, Microsoft C defines NULL in a way that
>>works for INCORRECT calls in large model (but *not* for medium nor
>>compact models), as a concession to bad programmers' wrong programs.

In article <975 at optilink.UUCP> cramer at optilink.UUCP (Clayton Cramer) writes:
>This is not correct.  Microsoft C defines NULL in a way that works
>for CORRECT calls in large model, and in medium and compact models.

Let me put it in as few words as possible:

If you do it my way, it always works.

If you do it your way, it sometimes works.

Now, which do you prefer?
-- 
In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 7163)
Domain:	chris at mimsy.umd.edu	Path:	uunet!mimsy!chris



More information about the Comp.lang.c mailing list