From 426cb9bd4b5e9e73c074830f48f77977ebb53c98 Mon Sep 17 00:00:00 2001 From: Tomasz Kramkowski Date: Wed, 23 Nov 2016 20:38:08 +0000 Subject: lib/arrlen.h: ARRLEN macro --- lib/arrlen.h | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 lib/arrlen.h (limited to 'lib') diff --git a/lib/arrlen.h b/lib/arrlen.h new file mode 100644 index 0000000..fdc5532 --- /dev/null +++ b/lib/arrlen.h @@ -0,0 +1,6 @@ +#ifndef LIB_ARRLEN_H +#define LIB_ARRLEN_H + +#define ARRLEN(a) (sizeof (a) / sizeof (a)[0]) + +#endif /* LIB_ARRLEN_H */ -- cgit v1.2.3-54-g00ecf