From bad9a70a48ff38f0d1e22fdedfcaa2241882a0bf Mon Sep 17 00:00:00 2001 From: Bert Date: Thu, 3 Feb 2011 14:32:02 +0100 Subject: Display filesize in window title --- util.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'util.h') 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 */ -- cgit v1.2.3