From: alan@nabeth.cxo.dec.com (Alan Rollow - Dr. File System's Home for Wayward Inodes.)
Subject: Re: Problem with C compiler?
Date: 1996/08/29 [thread overview]
Message-ID: <504f8i$ecg@nntpd2.cxo.dec.com> (raw)
In-Reply-To: 28AUG96.13550198.0011@AACCI.AACC.CC.MD.US
In article <28AUG96.13550198.0011@AACCI.AACC.CC.MD.US>, Scott Kramer <ZSAKSAK@AACCI.AACC.CC.MD.US> writes:
>I moved this source to my
>AIX 3.2.5 system and It compiled and worked fine. I am at a loss.
>Please forgive me if this is a simple question, but it is annoying.
>
>long *tloc;
>time(tloc);
You're lucky it worked there. A pointer has to point AT something.
A bare pointer could be pointing anywhere. On some system it may
be some random place in the virtual address of the process, just
some random place or no place. Try something like:
long *tloc, clock ;
tloc = &clock ;
time(tloc) ;
Or:
long clock ;
time(&clock) ;
--
Alan Rollow alan@nabeth.cxo.dec.com
next prev parent reply other threads:[~1996-08-29 4:00 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-08-28 4:00 Problem with C compiler? Scott Kramer
1996-08-29 4:00 ` Alan Rollow - Dr. File System's Home for Wayward Inodes. [this message]
1996-08-29 4:00 ` Tim Mooney
1996-08-30 4:00 ` Marc Roussel
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox