summaryrefslogtreecommitdiffstats
path: root/util.h
diff options
context:
space:
mode:
authorDouglas Rumbaugh <doug@douglasrumbaugh.com>2021-12-19 23:03:09 -0500
committerDouglas Rumbaugh <doug@douglasrumbaugh.com>2021-12-19 23:03:09 -0500
commit4ebfcc2fdc9a48067a149652b91e6103e1f048c3 (patch)
tree2d7d49dfad38ed6e68a354708d63589006d5c996 /util.h
parent35633d45672d14bd798c478c45d1a17064701aa9 (diff)
downloadslock-4ebfcc2fdc9a48067a149652b91e6103e1f048c3.tar.gz
Applied Xresources patch
https://tools.suckless.org/slock/patches/xresources/
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 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);