From owner-cvs-all Fri Jan 5 13:45:31 2001 From owner-cvs-all@FreeBSD.ORG Fri Jan 5 13:45:27 2001 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from Awfulhak.org (awfulhak.demon.co.uk [194.222.196.252]) by hub.freebsd.org (Postfix) with ESMTP id 77CE437B400; Fri, 5 Jan 2001 13:45:25 -0800 (PST) Received: from hak.lan.Awfulhak.org (root@hak.lan.Awfulhak.org [172.16.0.12]) by Awfulhak.org (8.11.1/8.11.1) with ESMTP id f05Lc0v02444; Fri, 5 Jan 2001 21:38:00 GMT (envelope-from brian@lan.Awfulhak.org) Received: from hak.lan.Awfulhak.org (brian@localhost [127.0.0.1]) by hak.lan.Awfulhak.org (8.11.1/8.11.1) with ESMTP id f05LiLi49413; Fri, 5 Jan 2001 21:44:21 GMT (envelope-from brian@hak.lan.Awfulhak.org) Message-Id: <200101052144.f05LiLi49413@hak.lan.Awfulhak.org> X-Mailer: exmh version 2.2 06/23/2000 with nmh-1.0.4 To: Warner Losh Cc: Brian Somers , Ben Smithurst , Matt Dillon , Chris Faulhaber , cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org, brian@Awfulhak.org Subject: Re: cvs commit: src/usr.bin/apply apply.c In-Reply-To: Message from Warner Losh of "Fri, 05 Jan 2001 13:44:29 MST." <200101052044.f05KiUb56823@harmony.village.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 05 Jan 2001 21:44:21 +0000 From: Brian Somers Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > In message <200101052027.f05KRHi48955@hak.lan.Awfulhak.org> Brian Somers writes: > : Except that the paragraph that says > : > : These functions return the number of characters printed (not including > : the trailing `\0' used to end output to strings). > : > : is wrong :-/ > > No it isn't. Oh yes it is :-) {v,}snprintf() does not return the number of characters printed. In fact ``printed'' is a pretty lousy word to use here anyway. Unless you're interpreting ``printed'' to mean ``that would be written to the buffer if ``size'' is sufficient''.... > At least not when read with the paragraph following it. I think a lot of people are guilty of reading man pages 'till they get the information they're looking for and then quitting. > 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. > Warner -- Brian Don't _EVER_ lose your sense of humour ! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message