diff --git a/include/common/mem.h b/include/common/mem.h index 577970d1..a38f7fde 100644 --- a/include/common/mem.h +++ b/include/common/mem.h @@ -13,7 +13,11 @@ void *xzalloc(size_t size); /* * Type-safe macros in the style of C++ new/new[]. - * may be either a type name or value expression. + * Both allocate zero-filled memory for object(s) the same size as + * , which may be either a type name or value expression. + * + * znew() allocates space for one object. + * znew_n() allocates space for an array of objects. * * Examples: * struct wlr_box *box = znew(*box);