From owner-cvs-all Fri Jan 5 11:18:26 2001 From owner-cvs-all@FreeBSD.ORG Fri Jan 5 11:18:24 2001 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from earth.backplane.com (placeholder-dcat-1076843399.broadbandoffice.net [64.47.83.135]) by hub.freebsd.org (Postfix) with ESMTP id B9F3D37B400; Fri, 5 Jan 2001 11:18:23 -0800 (PST) Received: (from dillon@localhost) by earth.backplane.com (8.11.1/8.9.3) id f05JINQ02516; Fri, 5 Jan 2001 11:18:23 -0800 (PST) (envelope-from dillon) Date: Fri, 5 Jan 2001 11:18:23 -0800 (PST) From: Matt Dillon Message-Id: <200101051918.f05JINQ02516@earth.backplane.com> To: Ben Smithurst Cc: Chris Faulhaber , Brian Somers , cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG Subject: Re: cvs commit: src/usr.bin/apply apply.c References: <200101050206.f0526rB87964@hak.lan.Awfulhak.org> <20010105162917.K85794@strontium.scientia.demon.co.uk> <20010105120633.B66833@peitho.fxp.org> <20010105184921.M85794@strontium.scientia.demon.co.uk> Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG :I don't agree with that, since the other functions return the number of :characters printed as well. Yes, but not portably. The ANSI standard tried to standardize it but the reality is that only snprintf()'s return value is portable. If you try to use the return value from other functions as a count, your code won't be portable. asprintf() *might* be portable too, but nothing else. -Matt To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message