* Scanf behavior
@ 2003-02-07 17:12 James Lamanna
0 siblings, 0 replies; only message in thread
From: James Lamanna @ 2003-02-07 17:12 UTC (permalink / raw)
To: linux-kernel
I was looking at addressing bug #189 on bugzilla which calls for scanf
to respect field_widths for numeric arguments (i.e. %2hd)
2 semantic issues I thought of:
1) Should the field width ignore any number modifiers ( '0x' for hex,
'0' for octal, '-' for negatives) ?
For example a field_width of 1 on the string "0x5F" should return 0 or
0x5
(I would think the latter is much more appropriate).
2) What about a field_width of 0? Always return 0?
Thanks,
--James
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-02-07 17:03 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-02-07 17:12 Scanf behavior James Lamanna
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox