diff options
| author | Poul-Henning Kamp <phk@FreeBSD.org> | 1998-04-19 06:47:25 +0000 |
|---|---|---|
| committer | Poul-Henning Kamp <phk@FreeBSD.org> | 1998-04-19 06:47:25 +0000 |
| commit | 3f643d87bbce2c3c5ebe21d3ab44bd93792b31b9 (patch) | |
| tree | 1cabb9fb6008ff25bd6ccdff5a6430c982161c86 /lib/libc/stdtime/localtime.c | |
| parent | 823833f19df1eed41eff6f44c072a704ff55b1c6 (diff) | |
Notes
Diffstat (limited to 'lib/libc/stdtime/localtime.c')
| -rw-r--r-- | lib/libc/stdtime/localtime.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/libc/stdtime/localtime.c b/lib/libc/stdtime/localtime.c index 5de39d66fa6e..61614c75e796 100644 --- a/lib/libc/stdtime/localtime.c +++ b/lib/libc/stdtime/localtime.c @@ -1345,6 +1345,15 @@ const time_t * const timep; return asctime(localtime(timep)); } +char * +ctime_r(timep, buf) +const time_t * const timep; +char *buf; +{ + struct tm tm; + return asctime_r(localtime_r(timep, &tm), buf); +} + /* ** Adapted from code provided by Robert Elz, who writes: ** The "best" way to do mktime I think is based on an idea of Bob |
