Path: utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!asuvax!stjhmc!p12.f56.n114.z1.fidonet.org!Chris.Gehlker From: Chris.Gehlker@p12.f56.n114.z1.fidonet.org (Chris Gehlker) Newsgroups: comp.sys.mac.programmer Subject: RE: How do you read the Mac's clock in THINK C? Message-ID: <31737.2760E204@stjhmc.fidonet.org> Date: 8 Dec 90 05:29:44 GMT Sender: ufgate@stjhmc.fidonet.org (newsout1.26) Organization: FidoNet node 1:114/56.12 - AZ MAC UG, Phoenix AZ Lines: 35 > How do you read the current clock time in THINK C on the Mac? The method I've > been trying NEVER reflects the actual clock time (by calling ctime(NULL)) but > some value that is apparently due to whatever random settings exist in the > memory location. GetTime(&d); where d is a DateTimeRec: DateTimeRec > > And to help prevent this problem from arising again, can anyone recommend a > > good book on programming in C specifically on the Mac (and possibly even > THINK C in particular? > > Thanks... Tom > > > ----------------------------------------------------------------------- > I William T. "Tom" Bridgman I wbridgm@hubcap.clemson.edu I > I Department of Physics & Astronomy I I > I Clemson University I"Black Holes under Construction.I > I Clemson, SC 29634 I WATCH YOUR STEP!" I > ----------------------------------------------------------------------- > > --- QM v1.23/b > * Origin: St Joseph's Medical Center Phoenix (602) 235-9653 (1:114/15.0) > -- Uucp: ...{gatech,ames,rutgers}!ncar!asuvax!stjhmc!56.12!Chris.Gehlker Internet: Chris.Gehlker@p12.f56.n114.z1.fidonet.org