From: rankin@eql.caltech.edu (Pat Rankin)
Subject: Re: need help using RTL time functions
Date: 5 Jan 1994 14:22 PDT [thread overview]
Message-ID: <5JAN199414225664@eql.caltech.edu> (raw)
In-Reply-To: ah301-050194132027@sy_j.pgh.wec.com
In article <ah301-050194132027@sy_j.pgh.wec.com>,\
ah301@yfn.ysu.edu (Jerry Sy) writes...
> I am writing a simple Vax C program to calculate time difference,
> but the RTL LIB$ functions does not seem to be returning to me
> the correct results. can anybody tell me what I am doing wrong ?
[...]
> unsigned long qDateA,qDateB,qDateDiff;
You can't make a quadword variable by prefixing the name of a
longword variable with "q". Change each of those to be arrays of two
longs (or four shorts, &c), and change the code which manipulates them
to cope with arrays rather than scalars.
unsigned long qDateA[2], qDateB[2], qDateDiff[2];
..lib$sub_times(qDateA, qDateB, qDateDiff); /* note '&'s removed */
Pat Rankin, rankin@eql.caltech.edu
next prev parent reply other threads:[~1994-01-05 21:22 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
1994-01-05 18:20 need help using RTL time functions Jerry Sy
1994-01-05 21:05 ` Neil Readwin
1994-01-05 21:22 ` Pat Rankin [this message]
1994-01-06 4:53 ` Carl J Lydick
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