newlib-cygwin/newlib/libc/time/ctime_r.c

15 lines
177 B
C
Raw Normal View History

2000-02-18 03:39:52 +08:00
/*
* ctime_r.c
*/
#include <time.h>
char *
ctime_r (const time_t * tim_p,
2000-02-18 03:39:52 +08:00
char * result)
{
struct tm tm;
return asctime_r (localtime_r (tim_p, &tm), result);
}