[PATCH 19/31] Provide ARRAY_SIZE

Ian Jackson ijackson at chiark.greenend.org.uk
Sat Sep 20 01:32:14 BST 2014


No call sites yet.

Signed-off-by: Ian Jackson <ijackson at chiark.greenend.org.uk>
---
 secnet.h |    1 +
 1 file changed, 1 insertion(+)

diff --git a/secnet.h b/secnet.h
index 7935709..faa24c4 100644
--- a/secnet.h
+++ b/secnet.h
@@ -564,5 +564,6 @@ extern void log_from_fd(int fd, cstring_t prefix, struct log_if *log);
 #define STRING(x) STRING2(x)
 
 #define FILLZERO(obj) (memset(&(obj),0,sizeof((obj))))
+#define ARRAY_SIZE(ary) (sizeof(ary)/sizeof(ary[0]))
 
 #endif /* secnet_h */
-- 
1.7.10.4




More information about the sgo-software-discuss mailing list