scanf question

Doug Gwyn gwyn at smoke.BRL.MIL
Tue Feb 21 09:43:05 AEST 1989


In article <9641 at cit-vax.Caltech.Edu> johns at wega.caltech.edu.UUCP (John Salmon) writes:
>Which is correct?  Is count set to 0 or 1 by:
>   count = sscanf("10", " %d", &i);

It's set to 1.

Generally, the properties of fprintf and fscanf in the proposed standard
were checked against existing UNIX System V behavior, since AT&T would
have vigorously protested having to change this existing behavior.



More information about the Comp.std.c mailing list