aboutsummaryrefslogtreecommitdiff
path: root/misc.c
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2021-09-17 22:34:52 +0200
committerJohn Ankarström <john@ankarstrom.se>2021-09-17 22:34:52 +0200
commit56509ab16c8d2225182eb0400e5c6a4900870391 (patch)
treee3c3bcc760ecc187a3f4ee8c6616855d15e86d83 /misc.c
parent3e400c3df5572524b7ba08b030f45eb3ba6b7734 (diff)
downloadcforum-56509ab16c8d2225182eb0400e5c6a4900870391.tar.gz
Fix mktpl bug
Diffstat (limited to 'misc.c')
-rw-r--r--misc.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/misc.c b/misc.c
deleted file mode 100644
index e5bdeef..0000000
--- a/misc.c
+++ /dev/null
@@ -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(&timestamp);
- strftime(buf, 20, "%Y-%m-%d %H:%M", t);
-
- return buf;
-} \ No newline at end of file