Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!unmvax!ncar!tank!mimsy!haven!adm!smoke!gwyn From: gwyn@smoke.BRL.MIL (Doug Gwyn ) Newsgroups: comp.std.c Subject: Re: scanf question Message-ID: <9670@smoke.BRL.MIL> Date: 20 Feb 89 23:43:05 GMT References: <9641@cit-vax.Caltech.Edu> Reply-To: gwyn@brl.arpa (Doug Gwyn (VLD/VMB) ) Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 9 In article <9641@cit-vax.Caltech.Edu> johns@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.