home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!spool.mu.edu!uwm.edu!zaphod.mps.ohio-state.edu!howland.reston.ans.net!paladin.american.edu!news.univie.ac.at!hp4at!mcsun!sunic!seunet!kullmar!piraya!overdose!Adam_Sjoegren
- From: Adam_Sjoegren@thesystem.bbs.bad.se (Adam Sjoegren)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Formatting strings, sprintf() <-> RawDoFmt()
- Message-ID: <OD.6badnetOA92-910-101_0F8AEBAC@piraya.bad.se>
- Date: Sun, 20 Dec 92 13:14:46 +0000
- Sender: BadNet@piraya.bad.se
- Reply-To: Adam_Sjoegren@thesystem.bbs.bad.se (Adam Sjoegren)
- Distribution: world
- Organization: The system, Frederiksberg Copenhagen, Denmark
- OD-Comment-To: All
- Lines: 23
-
-
- Why does the same formatting string used in sprintf() and RawDoFmt()
- not result in the same?
-
- For instance:
-
- rawsprintf(buf, "%5.0ld - %4.1ld (%2.1ld%%)\n", x, y, z);
- /* Doug's magic */
-
- Does not result in the same 'buf' as the same formatting string run
- through standard sprintf(). How come? I thought that the
- %<num>.<num><typ> was supposed to be some kind of standard?
-
- Am I missing something?
-
- .
- /|dam
- . .
- -*- -*-
- Adam Sjoegren \O_ asj@thesystem.bbs.bad.se \O_ +:+: The system :+:+
- Copenhagen, | GCChost Support, Denmark | "The magician longs"
- Denmark, Europe / \ Still running A500 )-: / \ BBS +45-31-354775
- ---
-