aboutsummaryrefslogtreecommitdiff
path: root/include/u.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/u.h')
-rw-r--r--include/u.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/u.h b/include/u.h
index 3fafcda..8044fe0 100644
--- a/include/u.h
+++ b/include/u.h
@@ -51,6 +51,7 @@ typedef int error;
#endif
#define arrlen(Array) (sizeof(Array) / sizeof((Array)[0]))
+#define arrend(Array) ((Array) + arrlen(Array))
#define MAX(x, y) ((x) >= (y) ? (x) : (y))
#define MIN(x, y) ((x) < (y) ? (x) : (y))