Syntax
int ItemGetNI( const ITEM *item );
Arguments
item is the ITEM to read.
Return value
The numeric value as an int, or 0 for other types. Representable fractional values are truncated toward zero and the integer result is clamped to the range of int.
Description
Use ItemGetNInt() if you need integers outside the range of int.
Example
#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