[Previous] [Contents] [Index] [Next]

PtGenListItemRealloc()

Reallocate memory for an item

Synopsis:

PtGenListItem_t *PtGenListItemRealloc(
                     PtGenListItem_t *item, 
                     PtWidget_t *list, 
                     size_t size );

Description:

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.

Returns:

A pointer to the reallocated item.

Classification:

Photon

Safety:
Interrupt handler No
Signal handler No
Thread No

[Previous] [Contents] [Index] [Next]