From: Jonathan Lundell <jlundell@pobox.com>
To: Andrew Morton <andrewm@uow.edu.au>,
Alan Cox <laughing@shared-source.org>,
crutcher+kernel@datastacks.com
Cc: linux-kernel@vger.kernel.org
Subject: Re: Linux 2.4.6-ac5
Date: Mon, 16 Jul 2001 08:43:23 -0700 [thread overview]
Message-ID: <p0510032ab778bbfd8df6@[207.213.214.37]> (raw)
In-Reply-To: <3B5307CB.1BA89A6F@uow.edu.au>
In-Reply-To: <20010716153702.A21514@lightning.swansea.linux.org.uk> <3B5307CB.1BA89A6F@uow.edu.au>
At 1:27 AM +1000 2001-07-17, Andrew Morton wrote:
>Also, my manpage says that vsnprintf should return -1
>if it truncated the output. Your implementation
>doesn't do that, but trivially could.
My manpage says:
>Return value
> These functions return the number of characters printed
> (not including the trailing `\0' used to end output to
> strings). snprintf and vsnprintf do not write more than
> size bytes (including the trailing '\0'), and return -1 if
> the output was truncated due to this limit. (Thus until
> glibc 2.0.6. Since glibc 2.1 these functions follow the
> C99 standard and return the number of characters (exclud-
> ing the trailing '\0') which would have been written to
> the final string if enough space had been available.)
>
--
/Jonathan Lundell.
prev parent reply other threads:[~2001-07-16 15:43 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-07-16 14:37 Alan Cox
2001-07-16 15:27 ` Andrew Morton
2001-07-16 15:43 ` Jonathan Lundell [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='p0510032ab778bbfd8df6@[207.213.214.37]' \
--to=jlundell@pobox.com \
--cc=andrewm@uow.edu.au \
--cc=crutcher+kernel@datastacks.com \
--cc=laughing@shared-source.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®