Xref: utzoo comp.unix.sysv386:8314 comp.lang.c:39493 Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!unix.cis.pitt.edu!dsinc!bagate!cbmvax!uunet!virtech!cpcahil From: cpcahil@virtech.uucp (Conor P. Cahill) Newsgroups: comp.unix.sysv386,comp.lang.c Subject: Re: time(0L) - history of a misconception (was Re: SCO password generator) Message-ID: <1991May22.190908.5311@virtech.uucp> Date: 22 May 91 19:09:08 GMT References: <1991May14.040042.15199@jpradley.jpr.com> <588@sherpa.UUCP> <1141@mwtech.UUCP> <381@tmcsys.UUCP> Organization: Virtual Technologies Inc. Lines: 27 lothar@tmcsys.UUCP (L. Hirschbiegel) writes: >Ever tried to RTFM for yourself? >If you still don't understand: I'll help you! >For this little test program: >main() >{ >time(0L); >time((long *)0); >} >the assembler output from my C compiler is [the same for both.] >Repeat after me: IT DOESN'T MATTER :-) Boy, you just showed the world that you are a junior programmer who hasn't yet realized that just because something works on your system doesn't mean it is right. The code you show won't work reliably on systems where the size of a pointer is different from the size of an integer (for ex: large model programs on an 8086 or 80286). Before you jump on someone elses case, be sure you know what you are talking about. -- Conor P. Cahill (703)430-9247 Virtual Technologies, Inc. uunet!virtech!cpcahil 46030 Manekin Plaza, Suite 160 Sterling, VA 22170