From 8a0efa53e44919bcf5ccb1d3353618a82afdf8bc Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Thu, 17 Feb 2000 19:39:52 +0000 Subject: import newlib-2000-02-17 snapshot --- newlib/libc/time/ctime_r.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 newlib/libc/time/ctime_r.c (limited to 'newlib/libc/time/ctime_r.c') diff --git a/newlib/libc/time/ctime_r.c b/newlib/libc/time/ctime_r.c new file mode 100644 index 000000000..fda8cac1e --- /dev/null +++ b/newlib/libc/time/ctime_r.c @@ -0,0 +1,15 @@ +/* + * ctime_r.c + */ + +#include + +char * +_DEFUN (ctime_r, (tim_p, result), + _CONST time_t * tim_p _AND + char * result) + +{ + struct tm tm; + return asctime_r (localtime_r (tim_p, &tm), result); +} -- cgit v1.2.3