home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.programmer
- Path: sparky!uunet!gatech!usenet.ins.cwru.edu!news.uakron.edu!RickWiggins@UAkron.Edu
- From: RickWiggins@UAkron.Edu (Rick Wiggins)
- Subject: IUTimeString returns garbage using Think C
- Message-ID: <1992Sep9.191325.395@news.uakron.edu>
- Sender: news@news.uakron.edu
- Organization: The University of Akron
- Distribution: usa
- Date: Wed, 9 Sep 1992 19:13:25 GMT
- Lines: 14
-
- I can't seem to get IUTimeString to return the correct string. From within
- the debugger I can see the Pascal string that is returned has a bunch of
- garbage in it; no ASCII characters! Here is the code segment I am using:
-
- long currentTime;
- Str255 timeString;
-
- GetDateTime( ¤tTime);
- IUTimeString( currentTime, TRUE, timeString);
-
- When I initialize timeString to "\pTest", I can see the Pascal string "Test"
- is there until after the call to IUTimeString; then there is just garbage.
-
- Any ideas will be appreciated!
-