diff options
Diffstat (limited to 'time/ctime_r.c')
-rw-r--r-- | time/ctime_r.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/time/ctime_r.c b/time/ctime_r.c index c111146d76..742a967fdd 100644 --- a/time/ctime_r.c +++ b/time/ctime_r.c @@ -27,3 +27,12 @@ ctime_r (const time_t *t, char *buf) struct tm tm; return __asctime_r (__localtime_r (t, &tm), buf); } + +/* Return a string as returned by asctime which is the representation + of *T in that form. Reentrant Y2038-proof version. */ +char * +__ctime64_r (const __time64_t *t, char *buf) +{ + struct tm tm; + return __asctime_r (__localtime64_r (t, &tm), buf); +} |