summaryrefslogtreecommitdiffstats
path: root/util.h
diff options
context:
space:
mode:
Diffstat (limited to 'util.h')
-rw-r--r--util.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/util.h b/util.h
index 4f05dea..fe8be58 100644
--- a/util.h
+++ b/util.h
@@ -24,6 +24,7 @@
#define ABS(a) ((a) < 0 ? (-(a)) : (a))
#define MIN(a,b) ((a) < (b) ? (a) : (b))
#define MAX(a,b) ((a) > (b) ? (a) : (b))
+#define LEN(a) (sizeof(a) / sizeof(a[0]))
void* s_malloc(size_t);
void* s_realloc(void*, size_t);
@@ -31,4 +32,6 @@ void* s_realloc(void*, size_t);
void warn(const char*, ...);
void die(const char*, ...);
+void size_readable(float*, const char**);
+
#endif /* UTIL_H */