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