Path: 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 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