Reallocate memory for an item
PtGenListItem_t *PtGenListItemRealloc( PtGenListItem_t *item, PtWidget_t *list, size_t size );
This function isn't used by the PtGenList widget itself. It may be used to reallocate memory if the item was allocated using malloc().
The given size should include the size of the PtGenListItem_t structure. If the item is moved to a different address by the realloc() function, PtGenListItemRealloc() will repair the list links.
A pointer to the reallocated item.
Photon
Safety: | |
---|---|
Interrupt handler | No |
Signal handler | No |
Thread | No |