Another scanf interpretation question

Doug Gwyn gwyn at smoke.BRL.MIL
Fri Jan 5 12:59:29 AEST 1990


In article <21624 at mimsy.umd.edu> chris at mimsy.umd.edu (Chris Torek) writes:
-... strtol and strtoul
- are defined such that they `accept' numbers of the form
-	+
-and
-	-
-(which both convert to the value 0).  ...

No, I don't think so.  A subset of the "expected form" of the subject
sequence is an integer constant according to the rules of 3.1.3.2, and
empty strings do not qualify as valid integer constants.



More information about the Comp.std.c mailing list