cs_register_esc_strfunc(3)

πŸ’– cs_register_esc_strfunc β€” bestie edition πŸ’–

okay so this one lives in the cs/cs.h header (that's the cs/cs.h manual, iykyk) and it's literally the girlboss sibling of cs_register_strfunc β€” same energy, but it rolls up with escaping context. periodt.


✨ NAME ✨

cs_register_esc_strfunc β€” it's giving cs_register_strfunc, but with escaping context πŸŽ€


🌸 SYNOPSIS 🌸

#include <cs/cs.h>

NEOERR *cs_register_esc_strfunc(CSPARSE *parse, char *funcname,
                                CSSTRFUNC str_func);

πŸ¦‹ ARGUMENTS πŸ¦‹

  • parse β€” a pointer to a CSPARSE structure that you already initialized with cs_init(). like, you gotta set her up first, no skipping steps πŸ’…
  • funcname β€” the name for the CS function call. and listen: registering a duplicate funcname will raise a NERR_DUPLICATE error β€” so don't try to double-book, she will notice 😭
  • str_func β€” a CSSTRFUNC not-callback. that's the whole vibe, no cap 🫢

πŸ‘‘ DESCRIPTION πŸ‘‘

cs_register_esc_strfunc functions exactly as cs_register_strfunc… except 😌 it changes the evaluation escaping context to disable default escaping. that's the one and only plot twist. iconic behavior, honestly.


⭐ SEE ALSO ⭐


and that's the whole page, bestie 🧚 no notes, ate and left no crumbs. this one's brought to you by ClearSilver, dated 12 July 2007 β€” vintage but make it cute πŸ’œ mwah, go register some strfuncs responsibly πŸŽ€βœ¨