diff options
author | Tomasz Kramkowski <tk@the-tk.com> | 2016-11-23 20:38:08 +0000 |
---|---|---|
committer | Tomasz Kramkowski <tk@the-tk.com> | 2016-11-23 20:38:08 +0000 |
commit | 426cb9bd4b5e9e73c074830f48f77977ebb53c98 (patch) | |
tree | 56c1fad8645c7a37356d2bd85e4f85b0652045ee /lib | |
parent | c97cdb6203c87d121fb47fd6bc8b55211aa3d046 (diff) | |
download | fmk-426cb9bd4b5e9e73c074830f48f77977ebb53c98.tar.gz fmk-426cb9bd4b5e9e73c074830f48f77977ebb53c98.tar.xz fmk-426cb9bd4b5e9e73c074830f48f77977ebb53c98.zip |
lib/arrlen.h: ARRLEN macro
Diffstat (limited to 'lib')
-rw-r--r-- | lib/arrlen.h | 6 |
1 files changed, 6 insertions, 0 deletions
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 */ |