Syntax
void ItemRelease( ITEM *item );
Arguments
item is an allocated ITEM owned by the caller, or NULL.
Return value
No return value.
Description
Releases the ITEM and the storage it owns, including strings and array elements. A pointer returned by ArrayGetItemPtr() belongs to its array and is released through the owning array.
Example
#include "xdev-wtui.h"
#include <stdio.h>
int main( void )
{
ITEM *item = ItemPutNI( NULL, 42 );
printf( "%d\n", ItemGetNI( item ) );
ItemRelease( item );
return 0;
}
Output
42