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