#include <string.h>
#include <ncurses.h>
+#include "date.h"
+#include "event.h"
#include "screen.h"
/* Static data */
debug_fd = fopen("/tmp/lackey.log", "w+");
}
-/* Misc functions */
-char *sdup(const char *str)
-{
- if (str == NULL)
- return NULL;
- int len = strlen(str);
- char *dup = malloc(len+1);
- memcpy(dup, str, len+1);
- return dup;
-}
-
/* Debugging functions */
int debug(char *fmt, ...)
{