chiark / gitweb /
cprogs: add FILLZERO
[chiark-utils.git] / cprogs / common.h
index a7a2cdd79251a16ad81978f159aeedd1efb4cbd5..680683d71de6b83130d877c1e0ad2e394cd0ca2d 100644 (file)
@@ -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*/