Syntax
int ArraySetL( ITEM *array, size_t index, int value );
Arguments
array Array to access.
index Element position, counted from 1.
value Zero for false or nonzero for true.
Return value
1; 0 outside the array. The index counts from 1.
Description
Replaces the slot with a logical value of type IT_LOGICAL. Use ArrayGetL() to read it.
Example
#include "xdev-wtui.h"
#include <stdio.h>
int main( void )
{
ITEM *array = Array( 2 );
if( !array )
return 1;
ArraySetL( array, 1, T );
printf( "%s\n", ArrayGetL( array, 1 ) ? "yes" : "no" );
ItemRelease( array );
return 0;
}