Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 5 Jan 2001 19:44:29 +0000
From:      Ben Smithurst <ben@FreeBSD.org>
To:        Matt Dillon <dillon@earth.backplane.com>
Cc:        Chris Faulhaber <jedgar@fxp.org>, Brian Somers <brian@Awfulhak.org>, cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG
Subject:   Re: cvs commit: src/usr.bin/apply apply.c
Message-ID:  <20010105194429.N85794@strontium.scientia.demon.co.uk>
In-Reply-To: <200101051918.f05JINQ02516@earth.backplane.com>
References:  <jedgar@fxp.org> <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> <200101051918.f05JINQ02516@earth.backplane.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Matt Dillon wrote:

> :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.

Oh hell.  In that case I'll probably just make the paragraph about
snprintf's return value clearer and not touch anything else.

-- 
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?20010105194429.N85794>