mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-27 03:33:33 +08:00
time: Fix strftime(3) API regarding nullability
strftime(3) doesn't accept null pointers in any of the parameters. Cc: Paul Eggert <eggert@cs.ucla.edu> Signed-off-by: Alejandro Colomar <alx@kernel.org> Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
This commit is contained in:
parent
113549d9fd
commit
09b3821222
@ -99,7 +99,8 @@ extern time_t __REDIRECT_NTH (mktime, (struct tm *__tp), __mktime64);
|
||||
of characters written, or 0 if it would exceed MAXSIZE. */
|
||||
extern size_t strftime (char *__restrict __s, size_t __maxsize,
|
||||
const char *__restrict __format,
|
||||
const struct tm *__restrict __tp) __THROW;
|
||||
const struct tm *__restrict __tp)
|
||||
__THROW __nonnull((1, 3, 4));
|
||||
|
||||
#ifdef __USE_XOPEN
|
||||
/* Parse S according to FORMAT and store binary time information in TP.
|
||||
|
Loading…
Reference in New Issue
Block a user