Article View: comp.std.c
Article #5694Re: ansi printf questions
From: Doug Gwyn
Date: Sat, 04 Feb 1989 10:16
Date: Sat, 04 Feb 1989 10:16
14 lines
1160 bytes
1160 bytes
In article <15159@oberon.USC.EDU> blarson@skat.usc.edu (Bob Larson) writes: >How does %i differ from %d? Is there a %i? I don't have the proposed Standard at hand but I don't recall a %i format. I'll look this up and if nobody else responds by the time I find out, I'll let you know what %i is supposed to do. >u, o, x, and X formats take an int and print it unsigned. Shouldn't >they take an unsigned int? Is there a difference on any known machine? Unsigned int is (now) required to be passed in exactly the same format as plain int, so it doesn't matter from the viewpoint of implementing printf(). It does matter from the viewpoint of the USER of printf(), and this has been fixed in the latest edition of the proposed Standard.
Technical Details
Message-ID:
<9591@smoke.BRL.MIL>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!iuvax!rutgers!cmcl2!adm!smoke!gwynReferences:
<15159@oberon.USC.EDU>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!iuvax!rutgers!cmcl2!adm!smoke!gwyn From: gwyn@smoke.BRL.MIL (Doug Gwyn ) Newsgroups: comp.std.c Subject: Re: ansi printf questions Message-ID: <9591@smoke.BRL.MIL> Date: 4 Feb 89 10:16:00 GMT References: <15159@oberon.USC.EDU> Reply-To: gwyn@brl.arpa (Doug Gwyn (VLD/VMB) <gwyn>) Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 14