Syntax
ITEM *ItemPutL( ITEM *item, int value );
Arguments
item is an existing ITEM to replace. Pass NULL to allocate a new ITEM.
value stores 0 as false and any nonzero value as true.
Return value
The destination ITEM, or a new caller-owned ITEM when item is NULL.
Description
Sets the type to IT_LOGICAL. Read it with ItemGetL(). Release a newly allocated ITEM with ItemRelease().
Example
#include "xdev-wtui.h"
#include <stdio.h>
int main( void )
{
ITEM *item = ItemPutL( NULL, T );
puts( ItemGetL( item ) ? "true" : "false" );
ItemRelease( item );
return 0;
}
Output
true