]> Pileus Git - lackey/blobdiff - src/util.h
Add event selection to day and week views
[lackey] / src / util.h
index d0baa3b37e28a7010eca8ff4ef0ddc4948114396..4f5d16e7dd0610658163448513780fbc0e02202d 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2012 Andy Spencer <andy753421@gmail.com>
+ * Copyright (C) 2012-2013 Andy Spencer <andy753421@gmail.com>
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -16,6 +16,7 @@
  */
 
 /* Macros */
+#define ABS(a)   ((a) > 0 ? (a) : -(a))
 #define MIN(a,b) ((a) < (b) ? (a) : (b))
 #define MAX(a,b) ((a) > (b) ? (a) : (b))
 #define CLAMP(x,l,h) MIN(MAX(x,l),h)
@@ -29,10 +30,15 @@ void util_init(void);
 
 /* Stirng functions */
 void strsub(char *str, char find, char repl);
+char *strcopy(const char *str);
+int match(const char *a, const char *b);
 
 /* Memory functions */
 void *alloc0(int size);
 
+/* File functions */
+char *read_file(const char *path, int *len);
+
 /* Debug functions */
 void debug(char *fmt, ...);
 void error(char *fmt, ...);