Syntax
ITEM *ItemPutNInt( ITEM *item, int64_t value );
Arguments
item is an existing ITEM to replace. Pass NULL to allocate a new ITEM.
value is the signed 64-bit integer to store.
Return value
The destination ITEM, or a new caller-owned ITEM when item is NULL.
Description
Sets the type to IT_INTEGER. Read it with ItemGetNInt(). Release a newly allocated ITEM with ItemRelease().
Example
#include "xdev-wtui.h"
#include <inttypes.h>
#include <stdio.h>
int main( void )
{
ITEM *item = ItemPutNInt( NULL, INT64_C( 5000000000 ) );
printf( "%" PRId64 "\n", ItemGetNInt( item ) );
ItemRelease( item );
return 0;
}
Output
5000000000