chiark
/
gitweb
/
~ian
/
chiark-utils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2199c99
)
cprogs: add FILLZERO
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sat, 9 Jul 2022 11:38:19 +0000
(12:38 +0100)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sun, 21 Aug 2022 20:21:10 +0000
(21:21 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
cprogs/common.h
patch
|
blob
|
history
diff --git
a/cprogs/common.h
b/cprogs/common.h
index a7a2cdd79251a16ad81978f159aeedd1efb4cbd5..680683d71de6b83130d877c1e0ad2e394cd0ca2d 100644
(file)
--- 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*/