diff options
Diffstat (limited to 'xdiff/xmacros.h')
-rw-r--r-- | xdiff/xmacros.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/xdiff/xmacros.h b/xdiff/xmacros.h index 9fd3c5d..0977d16 100644 --- a/xdiff/xmacros.h +++ b/xdiff/xmacros.h @@ -55,4 +55,7 @@ do { \ ? xdl_malloc((nr) * sizeof(*(p))) \ : NULL) +/* Allocate an array of nr zeroed out elements, returns NULL on failure */ +#define XDL_CALLOC_ARRAY(p, nr) ((p) = xdl_calloc(nr, sizeof(*(p)))) + #endif /* #if !defined(XMACROS_H) */ |