mailing list of musl libc
 help / color / mirror / code / Atom feed
From: John Scott <>
Subject: Re: [musl] Feature request: strftime() should set errno on failure
Date: Sat, 23 Jul 2022 02:42:21 +0000	[thread overview]
Message-ID: <> (raw)
In-Reply-To: <>

[-- Attachment #1: Type: text/plain, Size: 662 bytes --]

On Fri, 2022-07-22 at 22:27 -0400, Rich Felker wrote:
> In particular this does not say 0 can be returned for any error
> condition, only that 0 must be returned if the result does not fit,
> and that otherwise the return value must be the number of bytes placed
> in the array as a successful result. Moreover, "No errors are
> defined." which forbids implementations from even defining their own
> implementation-defined errors.

Thank you for bringing this to my attention, you are of course
absolutely right. In other words, as long as one provides a large enough
buffer, strftime() is required to succeed. I hereby retract my feature
request :)

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 252 bytes --]

      reply	other threads:[~2022-07-23  2:42 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-23  2:09 John Scott
2022-07-23  2:27 ` Rich Felker
2022-07-23  2:42   ` John Scott [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:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \

* 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.
Code repositories for project(s) associated with this public inbox

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).