home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / sys / amiga / programm / 17698 < prev    next >
Encoding:
Text File  |  1992-12-22  |  1.3 KB  |  35 lines

  1. Newsgroups: comp.sys.amiga.programmer
  2. Path: sparky!uunet!gatech!concert!sas!mozart.unx.sas.com!walker
  3. From: walker@twix.unx.sas.com (Doug Walker)
  4. Subject: Re: Formatting strings, sprintf() <-> RawDoFmt()
  5. Originator: walker@twix.unx.sas.com
  6. Sender: news@unx.sas.com (Noter of Newsworthy Events)
  7. Message-ID: <BznyJp.J7r@unx.sas.com>
  8. Date: Tue, 22 Dec 1992 13:52:37 GMT
  9. References:  <OD.6badnetOA92-910-101_0F8AEBAC@piraya.bad.se>
  10. Nntp-Posting-Host: twix.unx.sas.com
  11. Organization: SAS Institute Inc.
  12. Lines: 21
  13.  
  14.  
  15. In article <OD.6badnetOA92-910-101_0F8AEBAC@piraya.bad.se>, Adam_Sjoegren@thesystem.bbs.bad.se (Adam Sjoegren) writes:
  16. |> 
  17. |> Why does the same formatting string used in sprintf() and RawDoFmt()
  18. |> not result in the same?
  19.  
  20. RawDoFmt() assumes SHORT integers, no matter what your compiler
  21. options are.  (How could it know what your compiler options
  22. are?)  You need to use %ld to format a four-byte integer.
  23.  
  24. |>  Adam Sjoegren   \O_ asj@thesystem.bbs.bad.se  \O_  +:+: The system :+:+
  25.  
  26. -- 
  27.   *****
  28. =*|_o_o|\\=====Doug Walker, Software Distiller====== BBS: (919)460-7430 =
  29.  *|. o.| ||                                          1200/2400/9600 Dual
  30.   | o  |//     For all you do, this bug's for you!
  31.   ====== 
  32. usenet: walker@unx.sas.com                            bix: djwalker 
  33. Any opinions expressed are mine, not those of SAS Institute, Inc.
  34.  
  35.