headers/bsd: Add sys/queue.h.
[haiku.git] / src / system / libroot / posix / time / ctime.c
blob5542e9256d69f0677faa69a79aae476b234b5a93
1 /*
2 * Copyright 2004, Axel Dörfler, axeld@pinc-software.de.
3 * Distributed under the terms of the MIT License.
4 */
7 #include <time.h>
10 char *
11 ctime(const time_t *_timer)
13 return asctime(localtime(_timer));
17 char *
18 ctime_r(const time_t *_timer, char *buf)
20 struct tm tm;
21 return asctime_r(localtime_r(_timer, &tm), buf);