ncl_ginq_name_open_seg man page
ginq_name_open_seg (Inquire name of open segment) — returns the name of the currently open segment.
void ginq_name_open_seg(Gint *err_ind, Gint *name_open_seg);
(Output) - If the GKS state is SGOP (segment open), then err_ind is returned as "0"; otherwise err_ind is returned as "4".
(Output) - If the GKS state is SGOP (segment open), then name_open_seg is returned as the number of the currently open segment; otherwise name_open_seg is undefined.
To use the GKS C-binding routines, load the ncarg_gks and ncarg_c libraries.
Online: geval_tran_matrix(3NCARG), gaccum_tran_matrix(3NCARG), gclose_seg(3NCARG), gcreate_seg(3NCARG), gcopy_seg_ws(3NCARG), gdel_seg(3NCARG), ginq_set_seg_names(3NCARG), gset_seg_tran(3NCARG), gks(3NCARG), ncarg_gks_cbind(3NCARG)
Hardcopy: User's Guide for NCAR GKS-0A Graphics; NCAR Graphics Fundamentals, UNIX Version
Copyright (C) 1987-2009
University Corporation for Atmospheric Research
The use of this Software is governed by a License Agreement.