home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / sys / mac / programm / 15241 < prev    next >
Encoding:
Text File  |  1992-09-09  |  946 b   |  26 lines

  1. Newsgroups: comp.sys.mac.programmer
  2. Path: sparky!uunet!gatech!usenet.ins.cwru.edu!news.uakron.edu!RickWiggins@UAkron.Edu
  3. From: RickWiggins@UAkron.Edu (Rick Wiggins)
  4. Subject: IUTimeString returns garbage using Think C
  5. Message-ID: <1992Sep9.191325.395@news.uakron.edu>
  6. Sender: news@news.uakron.edu
  7. Organization: The University of Akron
  8. Distribution: usa
  9. Date: Wed, 9 Sep 1992 19:13:25 GMT
  10. Lines: 14
  11.  
  12. I can't seem to get IUTimeString to return the correct string.  From within
  13. the debugger I can see the Pascal string that is returned has a bunch of 
  14. garbage in it; no ASCII characters!  Here is the code segment I am using:
  15.  
  16.      long     currentTime;
  17.      Str255   timeString;
  18.  
  19.      GetDateTime( ¤tTime);
  20.      IUTimeString( currentTime, TRUE, timeString);
  21.  
  22. When I initialize timeString to "\pTest", I can see the Pascal string "Test"
  23. is there until after the call to IUTimeString; then there is just garbage.
  24.  
  25. Any ideas will be appreciated!
  26.