]> Pileus Git - lackey/blobdiff - src/util.c
Bug fixes
[lackey] / src / util.c
index 86bc3730701a21d2f5d1d4abc96a6929db769325..929ec04f5aa7456d11bd77139fc7afe7d51d1019 100644 (file)
@@ -22,8 +22,8 @@
 #include <ncurses.h>
 
 #include "date.h"
-#include "event.h"
-#include "screen.h"
+#include "cal.h"
+#include "view.h"
 
 /* Static data */
 static FILE *debug_fd = NULL;
@@ -34,6 +34,14 @@ void util_init(void)
        debug_fd = fopen("/tmp/lackey.log", "w+");
 }
 
+/* String functions */
+void strsub(char *str, char find, char repl)
+{
+       for (char *cur = str; *cur; cur++)
+               if (*cur == find)
+                       *cur = repl;
+}
+
 /* Debugging functions */
 int debug(char *fmt, ...)
 {