time(0L) - history of a misconception

Doug Gwyn gwyn at smoke.brl.mil
Sat May 25 06:53:47 AEST 1991


In article <7649 at segue.segue.com> jim at segue.segue.com (Jim Balter) writes:
>In article <1991May22.130713.25852 at sco.COM> david at sco.COM (David Fiander) writes:
>>There exist architectures on which the NULL pointer is different from
>>"all bits 0".
>This isn't relevant if using ANSI prototypes, since any form of zero is
>implicitly converted to the appropriate null pointer, no matter how it is
>represented.

Well, no, that's not quite right.  First of all, an appropriate prototype
must be in scope for automatic argument coercions to be performed; second,
only certain ways of writing "zero" will be converted to a null pointer
constant.  The bit pattern is definitely not relevant.



More information about the Comp.lang.c mailing list