coreboot-kgpe-d16/payloads/libpayload/curses/pdcurses-backend/nc_alloc.h

5 lines
214 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))