-
Notifications
You must be signed in to change notification settings - Fork 0
dll_new
Taras Maliukh edited this page Apr 11, 2020
·
2 revisions
dll_obj_t *dll_new(void *restrict data,
size_t size,
dll_bits_t bits,
f_dll_obj_data_del fn_del);Create a new list object
For specifying behavior for this object - set bits using this bits
!! Strongly recommended to setup fn_del if you allocating memory inside data
Pointer to the allocated memory otherwise NULL if:
- memory allocation failed
- if
DLL_BIT_DUPspecified:- failed to allocate memory for duplicate
size-n bytes ofdata
- failed to allocate memory for duplicate
- if
DLL_BIT_EIGNis not specified:- passed invalid
bitsmask -
datais NULL -
sizeis 0
- passed invalid