From 872a3770a432176ee969204976b935b3d68885f5 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sat, 9 Jul 2022 12:38:19 +0100 Subject: [PATCH] cprogs: add FILLZERO Signed-off-by: Ian Jackson --- cprogs/common.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cprogs/common.h b/cprogs/common.h index a7a2cdd..680683d 100644 --- a/cprogs/common.h +++ b/cprogs/common.h @@ -41,4 +41,6 @@ void common_diee(const char *what); /* prints errno */ void *xmalloc(size_t sz); +#define FILLZERO(object) (memset((&object),0,sizeof(object))) + #endif /*COMMON_H*/ -- 2.30.2