From f323af8fce54cd5d51c848aa7ea7be4dd3538f2e Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 21 Aug 1998 09:43:21 +0000 Subject: [PATCH] added a macro ZERO_STRUCT() which is useful for initialising structures declared on the stack. --- source/include/smb.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/include/smb.h b/source/include/smb.h index e88737f0464..9d6c8d7e295 100644 --- a/source/include/smb.h +++ b/source/include/smb.h @@ -1563,6 +1563,9 @@ extern int unix_ERR_code; #define CMD_REPLY 0x8000 +/* useful macros */ +#define ZERO_STRUCT(x) memset((char *)&(x), 0, sizeof(x)) + #endif /* _SMB_H */ #include "ntdomain.h" -- 2.11.4.GIT