Home List boxes LIST BOX - SET NEW ITEM LIST (AES 175, 1) LIST BOX - FREE ITEM LIST (AES 175, 3)

2.4.21 LIST BOX - FREE ITEMS (AES 175, 2)

This function frees the memory for the chained list from LBOX_ITEMs. A prerequisite for this is that memory was allocated with Malloc() for each item of the list.

If custom memory management was used for LBOX_ITEMs (e.g. the C standard functions), then a custom function must also be called to free the memory.

Declaration:
void lbox_free_items( LIST_BOX *box );

Call:
lbox_free_items( box );

Variable         Argument            Meaning
Inputs:

contrl[0]        175                 lbox_set
contrl[1]        1                   Entries in intin
contrl[3]        1                   Entries in addrin

intin[0]         2                   lbox_free_items

addrin[0]        box                 Pointer to the list box structure

Outputs:

contrl[2]        0                   Entries in intout
contrl[4]        0                   Entries in addrout


Home List boxes LIST BOX - SET NEW ITEM LIST (AES 175, 1) LIST BOX - FREE ITEM LIST (AES 175, 3)