chiark
/
gitweb
/
~ian
/
chiark-utils.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
cprogs: add FILLZERO
[chiark-utils.git]
/
cprogs
/
common.h
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*/