src/lib/misc.h
author Tero Marttila <terom@fixme.fi>
Fri, 26 Sep 2008 20:11:22 +0300
changeset 6 d2036d7799fd
child 24 82cfdb6680d1
permissions -rw-r--r--
new 'simple' module, plus hello_simple
#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 */