🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #5726

Re: scanf question

#5726
From: Doug Gwyn
Date: Mon, 20 Feb 1989 23:43
9 lines
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!gwyn
References: <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