Item

ItemRelease

Free a caller-owned ITEM

Syntax

Signature
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

itemrelease.c
#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

See also