SAMPLE_CHOICE(3G)
NAME
sample_choice − returns the current choice value.
SYNOPSIS
C SYNTAX
void sample_choice(fildes,ordinal,valid,value);
int fildes,ordinal,*valid,*value;
FORTRAN77 SYNTAX
subroutine sample_choice(fildes,ordinal,
valid,value)
integer*4 fildes,ordinal,valid,value
PASCAL SYNTAX
procedure sample_choice(fildes,ordinal:integer;
var valid,value:integer);
HP-UX COMPATIBILITY
Level: HP-UX/STANDARD
Origin: ANSI Computer Graphics Interface
DESCRIPTION
INPUT PARAMETERS
fildes
is an integer file descriptor returned by gopen when an I/O path to a graphics device is opened.
ordinal
a logical device number ranging from 1 to number of devices of this class.
OUTPUT PARAMETERS
valid
is set to TRUE (1) if a valid choice was returned, FALSE (0) otherwise.
value
is set to the current choice value.
DISCUSSION
Sample_choice returns the current value of the choice device specified by fildes and ordinal. This is the equivalent of a non-blocking read.
SEE ALSO
Hewlett-Packard Company — May 11, 2021