Article View: comp.std.c
Article #5726Re: scanf question
From: Doug Gwyn
Date: Mon, 20 Feb 1989 23:43
Date: Mon, 20 Feb 1989 23:43
9 lines
843 bytes
843 bytes
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.
Technical Details
Message-ID:
<9670@smoke.BRL.MIL>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!unmvax!ncar!tank!mimsy!haven!adm!smoke!gwynReferences:
<9641@cit-vax.Caltech.Edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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) <gwyn>) Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 9