X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;ds=inline;f=util.h;h=148dbc155e5fe5d98f9e1749c244fdaf0a71e00b;hb=ff479c17a10cceb09821ab908f361ed3b99758d4;hp=6f748b890ddd21240f87a02940888ec5bfa5247a;hpb=35633d45672d14bd798c478c45d1a17064701aa9;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);