From 2c564512516f88b09993b2e92637440441650bcc Mon Sep 17 00:00:00 2001 From: Hiltjo Posthuma Date: Mon, 25 May 2015 21:27:40 +0200 Subject: util.h: add LEN() macro --- util.h | 1 + 1 file changed, 1 insertion(+) 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 { -- cgit v1.2.3