Modules | |
| group | Memory chunk allocer |
Defines | |
| #define | di_new(struct_type, n_structs) ((struct_type *) di_malloc (sizeof (struct_type) * (n_structs))) |
| #define | di_new0(struct_type, n_structs) ((struct_type *) di_malloc0 (sizeof (struct_type) * (n_structs))) |
| #define | di_renew(struct_type, mem, n_structs) ((struct_type *) di_realloc ((mem), sizeof (struct_type) * (n_structs))) |
Functions | |
| void * | di_malloc (size_t n_bytes) __attribute__((malloc)) |
| void * | di_malloc0 (size_t n_bytes) __attribute__((malloc)) |
| void * | di_realloc (void *mem, size_t n_bytes) __attribute__((malloc)) |
| void | di_free (void *mem) |
|
|
|
|
|
|
|
|
|
|
|
Free memory
|
|
|
Allocate memory
|
|
|
Allocate cleared memory
|
|
||||||||||||
|
Reallocate memory
|
1.3.7