home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / mac / programm / 13889 < prev    next >
Encoding:
Text File  |  1992-08-12  |  891 b   |  26 lines

  1. Newsgroups: comp.sys.mac.programmer
  2. Path: sparky!uunet!usc!sol.ctr.columbia.edu!destroyer!gumby!kzoo!k044477
  3. From: k044477@hobbes.kzoo.edu (Jamie R. McCarthy)
  4. Subject: Re: annoying pascal strings
  5. Message-ID: <1992Aug12.182106.6970@hobbes.kzoo.edu>
  6. Organization: Kalamazoo College
  7. References: <1992Aug10.132907.23439@das.harvard.edu> <1992Aug11.033047.12451@ccu1.aukuni.ac.nz> <1992Aug12.164239.280@dtint.uucp>
  8. Date: Wed, 12 Aug 1992 18:21:06 GMT
  9. Lines: 15
  10.  
  11. tom@dtint.uucp (Thomas R. Kimpton) writes:
  12. >
  13. >This is one of my favorite constructs on the mac:
  14. >{
  15. >char dstr[257];
  16. >    dstr[0] = sprintf(&dstr[1],"debug info");
  17. >    DebugStr(dstr);
  18. >}
  19.  
  20. I just write:   DebugStr("\pdebug info");
  21.  
  22. Does MPW not let you do the "\p"-string-prefix thing?
  23. -- 
  24.  Jamie McCarthy      Internet: k044477@kzoo.edu      AppleLink: j.mccarthy
  25.  "Oh shut up."                         - Dan "Maynard" Gannon, 28 July 1992
  26.