ICLOEM(3NCARG)
π ICLOEM π
okay bestie, so this one is from the NCAR GRAPHICS manual, section 3NCARG, and it's genuinely so useful it's not even funny.
β¨ NAME β¨
ICLOEM β the little function you call to get the length of the non-blank portion of an error message. that's it. that's the whole job. and it ate. π
πΈ SYNOPSIS πΈ
LNGTH = ICLOEM(MESSG)
π¦ C-BINDING SYNOPSIS π¦
#include <ncarg/ncargC.h>
int c_icloem(char *messg)
π DESCRIPTION π
so the value of the expression ICLOEM(MESSG) is the actual length of the non-blank portion of the input character variable MESSG. literally just how many real characters are in there before the padding starts.
which means MESSG(1:ICLOEM(MESSG)) gives you the non-blank part of MESSG. iconic. no cap.
lowkey important caveat, bestie: this assumes the non-blank part ofMESSGis left-justified in the character string, with blank fill to the right. which is exactly the case for all NCAR Graphics error messages in calls toSETER. so if you're living thatSETERlife, you're fine. π«Ά
the argument of ICLOEM is as follows:
MESSGβ an input variable or constant of typeCHARACTER. most likely an error message returned by a reference to the functionSEMESS. (yes,SEMESS. the girlies know. iykyk. π)
π C-BINDING DESCRIPTION π
the C-binding argument descriptions are the same as the FORTRAN argument descriptions. same energy, different syntax. slay.
π EXAMPLES π
use the ncargex command to see the following relevant examples: tseter, arex02. go look at them. they're right there. obsessed. β¨
π ACCESS π
to use ICLOEM or c_icloem, load the NCAR Graphics libraries ncarg, ncarg_gks, and ncarg_c β preferably in that order. don't get cute with the order, bestie, the order matters. π
β SEE ALSO β
Online: entsr, eprin, errof, error_handling, fdum, icfell, nerro, retsr, semess, seter, ncarg_cbind
like a whole friend group. icfell is literally her sibling (fell = length, em = message... the way they're a matched set π).
π COPYRIGHT π
Copyright (C) 1987-2009 University Corporation for Atmospheric Research The use of this Software is governed by a License Agreement.
okay that's the whole page, bestie!! πΈπ¦ this one was documented back in March 1994 and it lives in the UNIX manual, filed under ICLOEM(3NCARG), source NCAR GRAPHICS. she's been serving error-message-length realness since before we were born and honestly?? respect. periodt. ππ
π¦ 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