Hash :
ee37744d
Author :
Date :
2022-12-21T13:25:39
asctime, ctime: deprecate C23 deprecates asctime and ctime, so deprecate them in Gnulib too. * NEWS, doc/posix-functions/asctime.texi: * doc/posix-functions/ctime.texi: Mention this. * lib/time.in.h (ctime): Deprecate any ctime replacement. * modules/ctime: Now obsolete.
@node asctime
@section @code{asctime}
@findex asctime
POSIX specification:@* @url{https://pubs.opengroup.org/onlinepubs/9699919799/functions/asctime.html}
Gnulib module: ---
Portability problems fixed by Gnulib:
@itemize
@end itemize
Portability problems not fixed by Gnulib:
@itemize
@item
This function is deprecated in C23.
Portable applications can use @code{strftime} (or even @code{sprintf}) instead.
@item
This function may overflow its internal buffer if an invalid year is passed.
@end itemize