Item

ItemGetL

Read a logical value from an ITEM

Syntax

Signature
int ItemGetL( const ITEM *item );

Arguments

item is the ITEM to read.

Return value

1 for a true logical ITEM, otherwise 0.

Description

Use ItemType() when the caller must distinguish a false value from a value of another type.

Example

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

See also