X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;ds=sidebyside;f=util.h;fp=util.h;h=148dbc155e5fe5d98f9e1749c244fdaf0a71e00b;hb=d8185d94e32f770bcf6d96a56f07fde81f1761e0;hp=6f748b890ddd21240f87a02940888ec5bfa5247a;hpb=8f3a5883fa89433551cf0107aa847b8e5be39300;p=slock.git diff --git a/util.h b/util.h index 6f748b8..148dbc1 100644 --- a/util.h +++ b/util.h @@ -1,2 +1,5 @@ +/* macros */ +#define LEN(a) (sizeof(a) / sizeof(a)[0]) + #undef explicit_bzero void explicit_bzero(void *, size_t);