Commit e4a779f1 authored by Jakob Bornecrantz's avatar Jakob Bornecrantz

aux/util: Add a size calloc helper

parent a36565c5
......@@ -15,6 +15,15 @@
extern "C" {
* Allocate and zero the give size and casts the memory into a pointer of the
* given type.
* @ingroup aux_util
#define U_CALLOC_WITH_CAST(TYPE, SIZE) ((TYPE *)calloc(1, SIZE))
* Allocate and zero the space required for some type, and cast the return type
* appropriately.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment