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:
parent
9d1d44dcb7
commit
8ad4c15758
@ -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
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user