From owner-cvs-all Fri Jan 5 14: 5:43 2001 From owner-cvs-all@FreeBSD.ORG Fri Jan 5 14:05:40 2001 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from scientia.demon.co.uk (scientia.demon.co.uk [212.228.14.13]) by hub.freebsd.org (Postfix) with ESMTP id 8F03437B400; Fri, 5 Jan 2001 14:05:39 -0800 (PST) Received: from strontium.scientia.demon.co.uk ([192.168.91.36] ident=root) by scientia.demon.co.uk with esmtp (Exim 3.20 #1) id 14EezQ-0004Gh-00; Fri, 05 Jan 2001 22:05:36 +0000 Received: (from ben@localhost) by strontium.scientia.demon.co.uk (8.11.1/8.11.1) id f05M5aK01712; Fri, 5 Jan 2001 22:05:36 GMT (envelope-from ben) Date: Fri, 5 Jan 2001 22:05:35 +0000 From: Ben Smithurst To: Brian Somers Cc: Warner Losh , Matt Dillon , Chris Faulhaber , cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/usr.bin/apply apply.c Message-ID: <20010105220535.Q85794@strontium.scientia.demon.co.uk> References: <200101052144.f05LiLi49413@hak.lan.Awfulhak.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200101052144.f05LiLi49413@hak.lan.Awfulhak.org> Sender: ben@scientia.demon.co.uk Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Brian Somers wrote: > Unless you're interpreting ``printed'' to mean ``that would be > written to the buffer if ``size'' is sufficient''.... If you read this bit, I think that's what it is supposed to mean: Snprintf() and vsnprintf() will write at most size-1 of the characters printed into the output string [...] i.e. all the characters are "printed", but not all of them are copied to the output string. This is certainly a new meaning of "printed" to me. :-/ >> It becomes clear. However, having said that, we likely should use the >> wording from the standard. It is much easier to follow. > > Yes. I agree. So what does the standard say? -- Ben Smithurst / ben@FreeBSD.org / PGP: 0x99392F7D To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message