Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!mcnc!gatech!emory!hubcap!wbridgm From: wbridgm@hubcap.clemson.edu (william t bridgman) Newsgroups: comp.sys.mac.programmer Subject: How do you read the Mac's clock in THINK C? Keywords: clock, Macintosh, THINK C Message-ID: <12071@hubcap.clemson.edu> Date: 5 Dec 90 02:42:54 GMT Distribution: usa Organization: Clemson University, Clemson, SC Lines: 22 I have been using THINK C on my Macintosh for about 6 months now, writing code that can be ported between the Mac & DECStations. Up to now I haven't needed to directly access the Mac Toolbox. 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. 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 ----------------------------------------------------------------------- | William T. "Tom" Bridgman | wbridgm@hubcap.clemson.edu | | Department of Physics & Astronomy | | | Clemson University |"Black Holes under Construction.| | Clemson, SC 29634 | WATCH YOUR STEP!" | -----------------------------------------------------------------------