RETSR(3NCARG)

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

πŸ’– 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 to RETSR at a time when the internal error flag is non-zero, that is treated as a fatal error. the error message gets printed, the dump routine FDUM is called, and a STOP is 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 value 1 turns recovery mode on 🌈, and the value 2 turns it off 🚫. normally you'd use a value of IROLD that was previously returned by a call to ENTSR. (basically: let ENTSR hand 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:

  • tseter
  • arex02

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 (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