coreboot-libre-fam15h-rdimm/payloads/libpayload/curses/pdcurses-backend/nc_alloc.h

4 lines
213 B
C

#define typeMalloc(type,elts) (type *)malloc((elts)*sizeof(type))
#define typeCalloc(type,elts) (type *)calloc((elts),sizeof(type))
#define typeRealloc(type,elts,ptr) (type *)_nc_doalloc(ptr, (elts)*sizeof(type))