Go to the documentation of this file.
18 #ifndef __CCD_ALLOC_H__
19 #define __CCD_ALLOC_H__
32 #define __CCD_ALLOC_MEMORY(type, ptr_old, size) \
33 (type *)realloc((void *)ptr_old, (size))
36 #define CCD_ALLOC(type) \
37 __CCD_ALLOC_MEMORY(type, NULL, sizeof(type))
40 #define CCD_ALLOC_ARR(type, num_elements) \
41 __CCD_ALLOC_MEMORY(type, NULL, sizeof(type) * (num_elements))
43 #define CCD_REALLOC_ARR(ptr, type, num_elements) \
44 __CCD_ALLOC_MEMORY(type, ptr, sizeof(type) * (num_elements))
fcl
Author(s):
autogenerated on Tue Dec 5 2023 03:40:48