summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2015-05-25 21:27:40 +0200
committerHiltjo Posthuma <hiltjo@codemadness.org>2015-05-25 21:27:40 +0200
commit2c564512516f88b09993b2e92637440441650bcc (patch)
tree6af50445a0f48ed76b82bc4eedc4c46381cb4c52
parent303b26115fa995808b9238f1b4814fd7a7eb2f13 (diff)
util.h: add LEN() macro
-rw-r--r--util.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/util.h b/util.h
index 5b4a358..5bea7b3 100644
--- a/util.h
+++ b/util.h
@@ -8,6 +8,7 @@
#include "queue.h"
#define ISUTF8(c) (((c) & 0xc0) != 0x80)
+#define LEN(x) (sizeof (x) / sizeof *(x))
/* feed info */
struct feed {