public inbox for libc-help@sourceware.org
 help / color / mirror / Atom feed
From: Adhemerval Zanella <adhemerval.zanella@linaro.org>
To: Vito Caputo <vcaputo@pengaru.com>, libc-help@sourceware.org
Subject: Re: strftime() _GNU_SOURCE extension request
Date: Thu, 7 Oct 2021 16:31:31 -0300	[thread overview]
Message-ID: <bb5f2be8-6c6b-7e3f-7071-7775117c3fa0@linaro.org> (raw)
In-Reply-To: <20210925061529.4dmdq3rbuvettzhr@shells.gnugeneration.com>



On 25/09/2021 03:15, Vito Caputo wrote:
> Hello list,
> 
> I'd like to propose a _GNU_SOURCE extension for strftime() treating
> str=NULL similarly to snprintf()'s C99 handling of str=NULL; write
> nothing to str, but return the number of bytes that /would/ be written
> if str were non-NULL and sufficiently large.

It sounds reasonable, I would suggestion you to check if gnulib is
willing to push for such change all well, since the code came from
them originally.

      reply	other threads:[~2021-10-07 19:31 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-25  6:15 Vito Caputo
2021-10-07 19:31 ` Adhemerval Zanella [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=bb5f2be8-6c6b-7e3f-7071-7775117c3fa0@linaro.org \
    --to=adhemerval.zanella@linaro.org \
    --cc=libc-help@sourceware.org \
    --cc=vcaputo@pengaru.com \
    /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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).