diff options
Diffstat (limited to 'misc.c')
-rw-r--r-- | misc.c | 19 |
1 files changed, 0 insertions, 19 deletions
@@ -1,19 +0,0 @@ -#include <err.h> -#include <time.h> -#include <stdio.h> -#include "misc.h" - -char * -date(int timestamp) -{ - char *buf; - time_t *t; - - if(!(buf = malloc(20))) - err(1, "malloc"); - - t = localtime(×tamp); - strftime(buf, 20, "%Y-%m-%d %H:%M", t); - - return buf; -}
\ No newline at end of file |