PCGETC(3NCARG)
β¨ PCGETC β¨
okay bestie, gather round π this one lives in the NCAR GRAPHICS manual (that's the 3NCARG section, iykyk) and it's called PCGETC β short for "Plotchar GET Character", which is giving exactly what it sounds like. She retrieves the current character value of an internal parameter. Like, she's the one you text when you need to know what a parameter is currently set to. π
NAME π
PCGETC β retrieves the current character value of an internal parameter.
SYNOPSIS π¦
CALL PCGETC (PNAM,CVAL)
C-BINDING SYNOPSIS πΈ
#include <ncarg/ncargC.h>
void c_pcgetc (char *pnam, char *cval, int len)
DESCRIPTION π
PNAMβ an input constant or variable of typeCHARACTER, and it's the name of the parameter you're trying to get. Heads up: the name has to sit in the first two characters of the string. No cap. And if the internal parameter you're after is one of the two that are arrays β those would beΒ΄BCΒ΄andΒ΄CCΒ΄β then the index of the array element you want can go right there, wrapped in parentheses, starting in columns 3 and following. The rest of the characters are free real estate, bestie β you can use them to document what the parameter is even for. Like, instead of justΒ΄MAΒ΄you could writeΒ΄MA - MAPPING FLAGΒ΄, and instead ofΒ΄CC(10)Β΄you could writeΒ΄CC(10) - SPECIAL COLOR 10Β΄. Cute, right? π«ΆCVALβ an output variable of typeCHARACTER. It's the name of the variable where the value of the internal parameter specified byPNAMgets retrieved into. That's her whole job. π
C-BINDING DESCRIPTION π§
The C-binding argument descriptions are literally the same as the FORTRAN argument descriptions, with one exception:
lenβ the size ofcvalas dimensioned in the calling program.
USAGE π
This routine lets you retrieve the current value of Plotchar parameters. And if you want the complete list of parameters available in this utility? Go read the plotchar_params man page, bestie, she has everything. β
ACCESS π
To use PCGETC or c_pcgetc, you gotta load the NCAR Graphics libraries ncarg, ncarg_gks, and ncarg_c β and preferably in that exact order. Order matters, don't fight it. π₯
MESSAGES π
See the plotchar man page for a description of all the Plotchar error messages and/or informational messages. She's got the receipts.
SEE ALSO π
Online: plotchar, plotchar_params, pcdlsc, pcgeti, pcgetr, pchiqu, pcloqu, pcmequ, pcmpxy, pcpnwi, pcrset, pcsetc, pcseti, pcsetr, ncarg_cbind.
Hardcopy: 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.
ngl the legal girlies ate with that license line, so we're keeping it exactly as is π
okay that's the whole page!! this one's from the UNIX manual, dated March 1993 (yes, she's an elder icon and she still slays), filed under PCGETC(3NCARG). go get those parameter values, bestie πβ¨π¦
π¦ 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