time(0L) - history of a misconception (was Re: SCO password generator)

Jim Balter jim at segue.segue.com
Fri May 24 05:13:45 AEST 1991


In article <4138 at uc.msc.umn.edu> jeff at uf.UUCP (Jeff Turner) writes:
>Of course by definition, passing (long*)0 is the only truely correct
>way to pass a long pointer that points to address 0, but that is toooooooo
>much to type :-)

By the ANSI standard, if there is a prototype in scope, a zero value of any
type is "correct".  Without a prototype, only (time_t *)0 is correct.



More information about the Comp.lang.c mailing list