Next: asin
, Previous: asctime
, Up: ISO C and POSIX Function Substitutes [Contents][Index]
asctime_r
Removed in POSIX.1-2024.
POSIX.1-2017 specification:
https://pubs.opengroup.org/onlinepubs/9699919799/functions/asctime_r.html
Gnulib module: extensions
Portability problems fixed by Gnulib:
_POSIX_PTHREAD_SEMANTICS
is not defined).
Portability problems not fixed by Gnulib:
strftime
(or even sprintf
) instead.
However, strftime
is locale dependent.
ctime
.
localtime
return, this is typically a mistake.
On most current platforms, these functions return a null pointer for
timestamps out of range, and this function has undefined behavior in
that case.