ansi printf questions
Bob Larson
blarson at skat.usc.edu
Sat Feb 4 13:56:44 AEST 1989
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 at Ecla.Usc.Edu blarson at skat.usc.edu
Uucp: {sdcrdcf,cit-vax}!oberon!skat!blarson
Prime mailing list: info-prime-request%ais1 at ecla.usc.edu
oberon!ais1!info-prime-request
More information about the Comp.std.c
mailing list