]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
lib:util: Sync memory.h with replace.h
authorAndreas Schneider <asn@samba.org>
Mon, 3 Dec 2018 14:37:03 +0000 (15:37 +0100)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 30 Apr 2019 23:18:26 +0000 (23:18 +0000)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
lib/util/memory.h

index 0e151cc5f66dc02c6424de7017d91382936c1aeb..4f7986c9b0c50bf0f310487077cf38a958f66017 100644 (file)
 #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
  */