home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / mac / programm / 14025 < prev    next >
Encoding:
Text File  |  1992-08-14  |  1.2 KB  |  35 lines

  1. Newsgroups: comp.sys.mac.programmer
  2. Path: sparky!uunet!haven.umd.edu!ni.umd.edu!zben-mac-ii.umd.edu!user
  3. From: zben@ni.umd.edu (Charles B. Cranston)
  4. Subject: Re: Re: annoying pascal strings
  5. Message-ID: <zben-140892194954@zben-mac-ii.umd.edu>
  6. Followup-To: comp.sys.mac.programmer
  7. Sender: usenet@ni.umd.edu (USENET News System)
  8. Nntp-Posting-Host: zben-mac-ii.umd.edu
  9. Organization: UM Home for the Terminally Analytical
  10. References: <10.2a8aedee@ivgate>
  11. Date: Fri, 14 Aug 1992 23:53:07 GMT
  12. Lines: 21
  13.  
  14. Please note: a bug in one of these news items inadvertently swapped
  15. my suggested fix (which works) with somebody else's (which does not).
  16.  
  17. I did *NOT* suggest:
  18.  
  19. > sprintf(str, "\p%d %f", 45, 3.4567);
  20. > Think C recognizes the \p control character and takes care of the rest.
  21.  
  22. I *DID* suggest:
  23.  
  24. > sprintf(&str[1], "%d %f", 45, 3.4567);
  25. > str[0] = strlen(&str[1]);
  26.  
  27. Not only is it painful to see a nonsolution attributed to me, but there
  28. is a good chance that latecomers to the discussion will be confused as
  29. to who knows what is going on and who doesn't.
  30.  
  31. If you use an automatic quoter, please take the time to manually fix
  32. the attribution.  Thank you for your support...
  33.  
  34. zben@ni.umd.edu     -KA3ZDF
  35.