From 7d657984bbdf867319e96dee6fbf5ed5b835ad14 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 21 Aug 1998 09:43:21 +0000 Subject: added a macro ZERO_STRUCT() which is useful for initialising structures declared on the stack. (This used to be commit f323af8fce54cd5d51c848aa7ea7be4dd3538f2e) --- source3/include/smb.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source3/include/smb.h b/source3/include/smb.h index e88737f046..9d6c8d7e29 100644 --- a/source3/include/smb.h +++ b/source3/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" -- cgit