diff --git a/src/kernel/libroot/posix/time/ctime.c b/src/kernel/libroot/posix/time/ctime.c index c7abc31446..8c458f1d4d 100644 --- a/src/kernel/libroot/posix/time/ctime.c +++ b/src/kernel/libroot/posix/time/ctime.c @@ -12,3 +12,13 @@ ctime(const time_t *_timer) { return asctime(localtime(_timer)); } + + +char * +ctime_r(const time_t *_timer, char *buf) +{ + struct tm tm; + + return asctime_r(localtime_r(_timer, &tm), buf); +} +