RETSR(3NCARG)
π RETSR β the NCAR Graphics glow-up return π
okay bestie, listen up: this is a page from the NCAR Graphics manual (that's the 3NCARG section, iykyk), and honestly? it's giving "undo button but make it retro FORTRAN." let's get into it. β¨
β¨ NAME β¨
RETSR β you call it when you wanna return to a saved state of the recovery mode in NCAR Graphics. it's the little time machine for your error-handling vibe. π°οΈπ«
πΈ SYNOPSIS πΈ
CALL RETSR(IROLD)
π¦ C-BINDING SYNOPSIS π¦
#include <ncarg/ncargC.h>
void c_entsr(int irold)
(yes, the header says c_entsr β we are not editing that, bestie, we report what's on the page π
)
π DESCRIPTION π
so the FORTRAN statement
CALL RETSR(IROLD)
is normally the move when you wanna take the internal error flag of SETER β you know, the one that says whether or not recovery mode is currently in effect β and put it back to the state it was in before some past call to ENTSR. it's literally restoring the vibe to a previous save point. π§
π¨ okay real talk, this part matters: if recovery mode gets turned off by a call toRETSRat a time when the internal error flag is non-zero, that is treated as a fatal error. the error message gets printed, the dump routineFDUMis called, and aSTOPis executed. like, full dramatic exit. no cap. π
and here's the argument, queen of input expressions:
IROLDβ an input expression of type INTEGER. it specifies the desired value for that internal flag that says whether recovery mode is in effect or not. the value1turns recovery mode on π, and the value2turns it off π«. normally you'd use a value ofIROLDthat was previously returned by a call toENTSR. (basically: letENTSRhand you the receipts, then hand them back. π§Ύ)
π C-BINDING DESCRIPTION π
the C-binding argument descriptions are the same as the FORTRAN argument descriptions. same energy, different font. π«Ά
π₯ EXAMPLES π₯
use the ncargex command to see these relevant examples, bestie:
tseterarex02
go look, they ate. π
β ACCESS β
to use RETSR or c_retsr, load the NCAR Graphics libraries ncarg, ncarg_gks, and ncarg_c β preferably in that order. (the order is the whole point, don't be chaotic. π)
π SEE ALSO π
online, go peek at: entsr, eprin, errof, error_handling, fdum, icfell, icloem, nerro, semess, seter, ncarg_cbind
π COPYRIGHT π
Copyright (C) 1987-2009 University Corporation for Atmospheric Research The use of this Software is governed by a License Agreement.
and that's the whole page, bestie!! π₯Ήπ this one came from the UNIX manual, March 1994, filed under RETSR(3NCARG) β vintage but make it iconic. mwah, study safe, and remember: check that error flag before you turn recovery mode off. love u, bye!! πβ¨π¦
π¦ where this page comes from
- epel 9: ncl-devel 6.6.2-59.el9 Β· LicenseRef-Callaway-BSD
- fedora 43: ncl-devel 6.6.2-58.fc43 Β· LicenseRef-Callaway-BSD
- fedora 44: ncl-devel 6.6.2-62.fc44 Β· LicenseRef-Callaway-BSD
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms