1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

lib:util: Sync memory.h with replace.h

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Andreas Schneider 2018-12-03 15:37:03 +01:00 committed by Andrew Bartlett
parent 9d1d44dcb7
commit 8ad4c15758

View File

@ -80,6 +80,11 @@
#define ZERO_ARRAY(x) memset_s((char *)(x), sizeof(x), 0, sizeof(x))
#endif
/**
* Zero a given len of an array
*/
#define ZERO_ARRAY_LEN(x, l) memset_s((char *)(x), (l), 0, (l))
/**
* Work out how many elements there are in a static array
*/