MPIFNB(3NCARG)

πŸ’– MPIFNB πŸ’– β€” the NCAR Graphics bestie that finds your first non-blank character

okay so welcome to the NCAR Graphics corner of the manual, page MPIFNB(3NCARG), and bestie this one is SO simple it's honestly kind of iconic for it. no cap.


✨ NAME ✨

MPIFNB β€” a simple utility function that finds the index of the first non-blank character in a character string. that's it. that's the whole job. she does one thing and she does it flawlessly πŸ’…


✨ SYNOPSIS ✨

IFNB=MPIFNB(CHRS)

✨ C-BINDING SYNOPSIS ✨

#include <ncarg/ncargC.h>

int c_mpifnb (char *chrs)

✨ DESCRIPTION ✨

  • CHRS β€” an input expression of type CHARACTER. she comes in, she gets scanned, that's her whole arc πŸ¦‹

🌸 C-BINDING DESCRIPTION 🌸

the C-binding argument description is literally the same as the FORTRAN argument description. same vibe, different language, we love consistency πŸ’–


✨ USAGE ✨

so the statement

IFNB=MPIFNB(CHRS)

sets the value of IFNB to the index β€” and the index is gonna be somewhere between 1 and LEN(CHRS), so like, in-bounds always, we love a safe queen β€” of the first non-blank character in the character string CHRS.

periodt. that's the tea. 🫢


✨ EXAMPLES ✨

None. 😭

ik, ik, she's giving mysterious. no examples provided, so we just vibe with the description. iykyk.


✨ ACCESS ✨

to use MPIFNB or c_mpifnb, you gotta load the NCAR Graphics libraries ncarg, ncarg_gks, and ncarg_c β€” and preferably in that order bestie, don't be chaotic about it. πŸ’€


✨ SEE ALSO ✨

Online: ezmap, ezmap_params, mapaci, mapbla, mapblm, mapdrw, mapeod, mapfst, mapgci, mapgrd, mapgrm, mapgtc, mapgti, mapgtl, mapgtr, mapint, mapiq, mapiqa, mapiqd, mapiqm, mapit, mapita, mapitd, mapitm, maplbl, maplmb, maplot, mappos, maproj, maprs, maprst, mapsav, mapset, mapstc, mapsti, mapstl, mapstr, maptra, maptri, maptrn, mapusr, mapvec, mpchln, mpfnme, mpgetc, mpgeti, mpgetl, mpgetr, mpglty, mpiaty, mpilnb, mpiola, mpiosa, mpipai, mpipan, mpipar, mpisci, mplnam, mplndm, mplndr, mplnri, mpname, mprset, mpsetc, mpseti, mpsetl, mpsetr, supmap, supcon, ncarg_cbind

like, go read them too, they're all part of the family πŸŽ€


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

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

okay so legal girlies, listen up: the use of this Software is governed by a License Agreement β€” read it, respect it, don't just click through it. πŸ’…

and that's the whole page bestie!! 🌈 this one came from the UNIX manual, dated April 1998, and it's MPIFNB(3NCARG) from NCAR Graphics. go forth and find your first non-blank character, you absolute main character. πŸ’–βœ¨πŸŽ€πŸ¦‹πŸŒΈπŸ‘‘