INQ_OPEN_SEGMENT(3G)
NAME
inq_open_segment − return information about the currently open segment
SYNOPSIS
C Syntax:
void inq_open_segment(fildes,segno,seg_open)
int fildes,*segno,*seg_open;
FORTRAN77 Syntax:
subroutine inq_open_segment(fildes,segno,seg_open)
integer*4 fildes,segno,seg_open
Pascal Syntax:
procedure inq_open_segment(fildes:integer;
var segno,seg_open:integer);
DESCRIPTION
Input Parameters
fildes Integer file descriptor returned by gopen when an I/O path to a graphics device is opened.
Output Parameters
segno Name of currently open segment.
seg_open Flag indicating whether or not there is an open segment:
FALSE (0): no open segment
TRUE (1): segment open
Discussion
Inq_open_segment returns information about the currently open segment of the specified graphics device.
If a segment is open, inq_open_segment returns the name of the currently open segment in segno and seg_open is set to TRUE (1). If a segment is not open, inq_open_segment leaves segno unchanged and seg_open is set to FALSE (0).
ERRORS
1 Graphics device is not initialized for this operation.
SEE ALSO
Hewlett-Packard Company — December 25, 1986