src/lib/misc.h
author Tero Marttila <terom@fixme.fi>
Sat, 11 Oct 2008 21:35:48 +0300
changeset 20 f0ef6d8880b4
parent 6 d2036d7799fd
child 24 82cfdb6680d1
permissions -rw-r--r--
fix build deps for subdirs of src
#ifndef LIB_UTIL_H
#define LIB_UTIL_H

/*
 * Initialize the given *value* with zeros
 */
#define ZINIT(obj) memset(&(obj), 0, sizeof((obj)))

#endif /* LIB_UTIL_H */