summaryrefslogtreecommitdiffstats
path: root/util.h
diff options
context:
space:
mode:
authorLouis Burda <quent.burda@gmail.com>2021-12-20 16:25:43 +0100
committerLouis Burda <quent.burda@gmail.com>2021-12-20 16:25:43 +0100
commitf07580d31d1148c4a1811c36b09ca0ad50d9576b (patch)
tree05a8fbb44af81f3b5937df80c5af3305ec3ed3c9 /util.h
parentfaee8e9c6db45c6adacfc5113d55927f92e8bf29 (diff)
downloadtmus-f07580d31d1148c4a1811c36b09ca0ad50d9576b.tar.gz
tmus-f07580d31d1148c4a1811c36b09ca0ad50d9576b.zip
Restructured repository and added automatic make dependency generation
Diffstat (limited to 'util.h')
-rw-r--r--util.h19
1 files changed, 0 insertions, 19 deletions
diff --git a/util.h b/util.h
deleted file mode 100644
index b9f45f4..0000000
--- a/util.h
+++ /dev/null
@@ -1,19 +0,0 @@
-#pragma once
-
-#include <stdio.h>
-
-#define MAX(a, b) ((a) > (b) ? (a) : (b))
-#define MIN(a, b) ((a) > (b) ? (b) : (a))
-#define ARRLEN(x) (sizeof(x)/sizeof((x)[0]))
-
-#define ASSERT(x) assert((x), __FILE__, __LINE__, #x)
-
-int strnwidth(const char *s, int n);
-void assert(int cond, const char *file, int line, const char *condstr);
-
-char *aprintf(const char *fmtstr, ...);
-char *appendstrf(char *alloc, const char *fmtstr, ...);
-
-char *sanitized(const char *instr);
-
-const char *timestr(unsigned int seconds);