* strftime() _GNU_SOURCE extension request
@ 2021-09-25 6:15 Vito Caputo
2021-10-07 19:31 ` Adhemerval Zanella
0 siblings, 1 reply; 2+ messages in thread
From: Vito Caputo @ 2021-09-25 6:15 UTC (permalink / raw)
To: libc-help
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.
Thanks,
Vito Caputo
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: strftime() _GNU_SOURCE extension request
2021-09-25 6:15 strftime() _GNU_SOURCE extension request Vito Caputo
@ 2021-10-07 19:31 ` Adhemerval Zanella
0 siblings, 0 replies; 2+ messages in thread
From: Adhemerval Zanella @ 2021-10-07 19:31 UTC (permalink / raw)
To: Vito Caputo, libc-help
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.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-10-07 19:31 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-25 6:15 strftime() _GNU_SOURCE extension request Vito Caputo
2021-10-07 19:31 ` Adhemerval Zanella
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).