GINQ_SET_SEG_NAMES(3NCARG)
ginq_set_seg_names π
okay so bestie, this one lives in the NCAR GRAPHICS manual, section 3NCARG, and it's literally the vibe check for your segment names β¨ It tells you which segment names are currently in use. No cap.
β¨ NAME β¨
ginq_set_seg_names β retrieves what segment names are currently in use π¦
β¨ SYNOPSIS β¨
#include <ncarg/gks.h>
void ginq_set_seg_names(Gint num_elems_appl_list, Gint start_pos, Gint
*err_ind, Gint_list *seg_names, Gint *length_list);
β¨ DESCRIPTION β¨
okay so here's the rundown of every single argument, and yes we're doing all of them π
num_elems_appl_listβ (Input) the number of elements in the application list you wanna request. like, how many you're asking for, bestie πstart_posβ (Input) the first set member requested. where you're starting from, periodt.err_indβ (Output) if the GKS state is WSOP (workstation open), WSAC (workstation active), or SGOP (segment open), thenerr_indgets returned as"0"π otherwiseerr_indgets returned as"7"πlength_listβ (Output) the number of segment names that are currently in use. the actual count, fr fr π₯seg_names.num_intsβ (Gint, Output) the number of segment names returned πseg_names.intsβ (Gint *, Output) if the GKS state is WSOP (workstation open), WSAC (workstation active), or SGOP (segment open), and ifstart_posis non-negative, thenseg_names.intsis returned as the list of segment names starting with element"start_pos"and ending with element"start_pos + num_elems_appl_list - 1"or"start_pos + length_list - 1", whichever is less π otherwiseseg_names.num_intsis undefined β like, genuinely undefined, not "undefined but probably fine". watch out π
β¨ USAGE β¨
for NCAR GKS, segment names are integers between 0 and 99 inclusive (see the man page for gcreate_seg(3NCARG)) πΈ
β¨ ACCESS β¨
to use the GKS C-binding routines, load the ncarg_gks and ncarg_c libraries π«Ά
β¨ SEE ALSO β¨
Online: geval_tran_matrix(3NCARG), gaccum_tran_matrix(3NCARG), gclose_seg(3NCARG), gcreate_seg(3NCARG), gcopy_seg_ws(3NCARG), ginq_name_open_seg(3NCARG), gdel_seg(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 β¨
Copyright (C) 1987-2009 University Corporation for Atmospheric Research The use of this Software is governed by a License Agreement.
bestie pls don't forget: seg_names.num_ints is undefined in that one case. i'm not being dramatic, the manpage literally says undefined. protect ur data π
and that's the whole page, gorgeous π sign-off time: this was the UNIX version, dated March 1993, and the page is GINQ_SET_SEG_NAMES(3NCARG). iconic, honestly. bye bestie, go retrieve some segment names π β¨
π¦ where this page comes from
- debian bookworm: libncarg-dev 6.6.2.dfsg.1-1
- debian trixie: libncarg-dev 6.6.2.dfsg.1-10+b2
- ubuntu jammy: libncarg-dev 6.6.2-10build2
- ubuntu questing: libncarg-dev 6.6.2.dfsg.1-10build2
- ubuntu resolute: libncarg-dev 6.6.2.dfsg.1-12
- ubuntu stonking: libncarg-dev 6.6.2.dfsg.1-12build2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms