index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Pierre Neidhardt <ambrevar@gmail.com> | 2015-10-21 11:11:17 +0200 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2015-10-27 13:53:18 +1000 |
commit | 456ebe8f8eee82c467805613f107edd84e73ac26 (patch) | |
tree | da9a058a2e598d7dbf2efd9c61d9107eb9c5eb31 /src/common/util-common.h | |
parent | 9809102237f89b73a120250260bf3f68d6bc4ba9 (diff) |
-rw-r--r-- | src/common/util-common.h | 2 |
diff --git a/src/common/util-common.h b/src/common/util-common.h index af2ebdaa..f604e79a 100644 --- a/src/common/util-common.h +++ b/src/common/util-common.h @@ -36,6 +36,8 @@ size_t strtrim(char *str); char *strndup(const char *s, size_t n); #endif +#define ARRAYSIZE(a) (sizeof (a) / sizeof (a[0])) + #endif /* _PM_UTIL_COMMON_H */ /* vim: set noet: */ |