🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #2147

Re: Change to time() fn?

#2147
From: Stephen Friedl
Date: Mon, 28 Sep 1992 18:22
18 lines
1090 bytes
The recent spate of articles on the implementation of times encourages
me to post a reminder to all UNIX folks -- do NOT use /long/ when you
mean /time_t/.

In my otherwise highly portable code, I got sloppy because I didn't
want to mess around with #include <sys/types.h> everywhere, but I
got burned on the DEC Alpha machine.  It is a 64-bit machine, and
their time_t is a 32-bit /int/, not a 64-bit long.

Be warned and don't make the bozo blunder I made.

     Stephen

-- 
Stephen J Friedl | Software Consultant | Tustin, CA |     +1 714 544-6561
3b2-kind-of-guy  | I speak for me ONLY |   KA8CMY   | uunet!mtndew!friedl
 
Attorneys are paranoid because they assume everybody else is dishonest too
Technical Details
Message-ID: <704@mtndew.Tustin.CA.US>
Path: arc1-ca.pugleaf.net!sparky!uunet!mtndew!friedl
References: <1992Sep13.184530.27370@ima.isc.com> <1992Sep17.182536.17331@thinkage.on.ca>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!mtndew!friedl
From: friedl@mtndew.Tustin.CA.US (Stephen Friedl)
Newsgroups: comp.std.c
Subject: Re: Change to time() fn?
Message-ID: <704@mtndew.Tustin.CA.US>
Date: 28 Sep 92 18:22:29 GMT
References: <1992Sep13.184530.27370@ima.isc.com> <1992Sep17.182536.17331@thinkage.on.ca>
Organization: Steve's Personal machine / Tustin, CA
Lines: 18