Date: Fri, 5 Jan 2001 22:05:35 +0000 From: Ben Smithurst <ben@FreeBSD.org> To: Brian Somers <brian@Awfulhak.org> Cc: Warner Losh <imp@harmony.village.org>, Matt Dillon <dillon@earth.backplane.com>, Chris Faulhaber <jedgar@fxp.org>, 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> In-Reply-To: <200101052144.f05LiLi49413@hak.lan.Awfulhak.org> References: <imp@harmony.village.org> <200101052144.f05LiLi49413@hak.lan.Awfulhak.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010105220535.Q85794>
