From 7ef8a7379f7f7d09e71ccae2a0b688c3cd80423f Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Fri, 8 Feb 2019 18:42:39 -0500 Subject: merge sources into single tree --- src/time/ctime.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 src/time/ctime.c (limited to 'src/time/ctime.c') diff --git a/src/time/ctime.c b/src/time/ctime.c new file mode 100644 index 00000000..5619e316 --- /dev/null +++ b/src/time/ctime.c @@ -0,0 +1,18 @@ +#include + +/** convert arithmetic time to string **/ + +char * ctime(const time_t * timer) +{ + return asctime(localtime(timer)); +} + +/*** +converts the time at ARGUMENT(timer) to a string in the same format as +FUNCTION(asctime). +***/ + +/* +RETURN_ALWAYS(a pointer to the string) +STDC(1) +*/ -- cgit v1.2.1