diff options
Diffstat (limited to 'src/time/ctime.c')
| -rw-r--r-- | src/time/ctime.c | 18 |
1 files changed, 18 insertions, 0 deletions
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 <time.h> + +/** 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) +*/ |
