summaryrefslogtreecommitdiffstats
path: root/util.h
diff options
context:
space:
mode:
authorBert <ber.t@gmx.com>2011-02-03 14:32:02 +0100
committerBert <ber.t@gmx.com>2011-02-03 14:32:02 +0100
commitbad9a70a48ff38f0d1e22fdedfcaa2241882a0bf (patch)
tree863ed44c8a15c634da65ae48d1c35767e3afd09c /util.h
parent12a94cc40ef0f155a9c99dea915cd3807d760441 (diff)
downloadnsxiv-bad9a70a48ff38f0d1e22fdedfcaa2241882a0bf.tar.zst
Display filesize in window title
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 */