DPGETR(3NCARG)

πŸ“¦ version 6.6.2, in epel 9, fedora 43, fedora 44

πŸ’– DPGETR β€” it's giving "grab that real number, bestie" ✨

okay so this one is from NCAR GRAPHICS and it lives in section 3 of the manual, and honestly? she's a little legend. let's get into it 🫢


🌸 NAME 🌸

DPGETR β€” she retrieves the real value of an internal parameter of type REAL or INTEGER. that's it, that's the whole job, and she does it flawlessly πŸ’…


✨ SYNOPSIS ✨

CALL DPGETR (PNAM,RVAL)

πŸŽ€ C-BINDING SYNOPSIS πŸŽ€

#include <ncarg/ncargC.h>

void c_dpgetr (char *pnam, float *rval)

πŸ¦‹ DESCRIPTION πŸ¦‹

  • PNAM β€” an input expression of type CHARACTER, and she specifies the name of the parameter you're getting. the way this works: the name has to appear as the first three characters of the string. anything after that? purely for documentation vibes, no cap. like, instead of just writing Β΄LS1Β΄, you can go all out and write Β΄LS1 - LABEL SPACING PARAMETER 1Β΄ and it still works. iconic behaviour fr fr πŸ“
  • RVAL β€” an output variable of type REAL, and she's the name of the variable where the value of the internal parameter specified by PNAM gets dropped off. here's the tea: if the internal parameter is a value "r" of type REAL, then the value returned is "r". but if the internal parameter is a value "i" of type INTEGER, then the value returned is "REAL(i)". so either way you're getting a REAL back, bestie, no surprises πŸ’–

🌈 C-BINDING DESCRIPTION 🌈

the C-binding argument descriptions are the same as the FORTRAN argument descriptions. same energy, different syntax, we love a consistent queen ✨


πŸ‘‘ USAGE πŸ‘‘

this routine lets you retrieve the current value of Dashpack parameters. and if you wanna see the complete list of parameters available in this utility, go check out the dashpack_params man page β€” she has the full menu πŸ“


πŸ’œ ACCESS πŸ’œ

to use DPGETR or c_dpgetr, you gotta load the NCAR Graphics libraries ncarg, ncarg_gks, and ncarg_c β€” preferably in that order. don't be chaotic about the order, the order matters, trust πŸ™ˆ


πŸ”₯ MESSAGES πŸ”₯

for a description of all Dashpack error messages and/or informational messages, see the dashpack man page. she's got the whole gossip column πŸ’€


🌟 SEE ALSO 🌟

Online: dashpack, dashpack_params, dpcurv, dpdraw, dpfrst, dpgetc, dpgeti, dplast, dpline, dpsetc, dpseti, dpsetr, dpsmth, dpvect, ncarg_cbind.

Hardcopy: NCAR Graphics Fundamentals, UNIX Version

the whole friend group, all linked up, we stan a connected squad 🫢


Copyright (C) 1987-2009 University Corporation for Atmospheric Research

The use of this Software is governed by a License Agreement.

bestie, this is the legal bit β€” respect the License Agreement, it's not a suggestion πŸ’…

and that's the whole page!! this lil beauty came from the UNIX manual, dated March 1995, filed under DPGETR(3NCARG). slay, ate, left no crumbs, periodt πŸ’–βœ¨πŸŽ€πŸ¦‹πŸŒΈπŸ’…

πŸ“¦ where this page comes from