strftime() _GNU_SOURCE extension request

Adhemerval Zanella adhemerval.zanella@linaro.org
Thu Oct 7 19:31:31 GMT 2021



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.


More information about the Libc-help mailing list