Article View: comp.std.c
Article #5693ansi printf questions
From: Bob Larson
Date: Sat, 04 Feb 1989 03:56
Date: Sat, 04 Feb 1989 03:56
15 lines
989 bytes
989 bytes
While writing a portable vsprintf implemtation (to be submitted to
comp.sources.misc) I noticed a couple of oddities in the K&R 2
description of printf formats:
How does %i differ from %d? Is this just for compatability with
scanf strings?
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?
--
Bob Larson Arpa: Blarson@Ecla.Usc.Edu blarson@skat.usc.edu
Uucp: {sdcrdcf,cit-vax}!oberon!skat!blarson
Prime mailing list: info-prime-request%ais1@ecla.usc.edu
oberon!ais1!info-prime-request
Technical Details
Message-ID:
<15159@oberon.USC.EDU>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!ucsd!orion.cf.uci.edu!oberon!skat.usc.edu!blarsonShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!ucsd!orion.cf.uci.edu!oberon!skat.usc.edu!blarson From: blarson@skat.usc.edu (Bob Larson) Newsgroups: comp.std.c Subject: ansi printf questions Message-ID: <15159@oberon.USC.EDU> Date: 4 Feb 89 03:56:44 GMT Sender: news@oberon.USC.EDU Reply-To: blarson@skat.usc.edu (Bob Larson) Organization: USC AIS, Los Angeles Lines: 15