Syntax
const char *ItemGetCPtr( const ITEM *item );
Arguments
item is the ITEM to read.
Return value
A pointer to the stored string, or an empty string for NULL or a value of another type.
Description
The ITEM owns the string. Copy the text if it must remain available after the ITEM is changed or released.
Example
#include "xdev-wtui.h"
#include <stdio.h>
int main( void )
{
ITEM *item = ItemPutC( NULL, "Ready" );
puts( ItemGetCPtr( item ) );
ItemRelease( item );
return 0;
}
Output
Ready