Syntax
ITEM *ItemPutC( ITEM *item, const char *value );
Arguments
item is an existing ITEM to replace. Pass NULL to allocate a new ITEM.
value is a NUL-terminated string. Pass NULL to store an empty string.
Return value
The destination ITEM, or a new caller-owned ITEM when item is NULL.
Description
Stores an independent copy of the input. Use ItemPutCL() if you already know the number of bytes.
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