EC_NODE_RE_SET_REGEXP(3)

πŸ“¦
version 0.11.7 Β· 4 versions
, in fedora 44

✨ NAME ✨

okay bestie, welcome to EC_NODE_RE_SET_REGEXP(3) from the Libecoli Programmer's Manual 🫢 β€” this one's a tiny little function and honestly? iconic.

ec_node_re_set_regexp β€” Set the regular expression on a regex node. πŸ’… That's it. That's the whole job. She sets the regexp. Periodt.


🌸 SYNOPSIS 🌸

first things first, you gotta pull in the header:

#include <ecoli/node_re.h>

and then here's the whole signature, exactly as it is, no cap:

int ec_node_re_set_regexp(
    struct ec_node   *node,  /* The regex node. */
    /*
     * The regular expression pattern. It is duplicated internally.
     */
    const char       *re
);

so node is the regex node (the thing you're blessing with a pattern), and re is the regular expression pattern itself. and listen β€” it gets duplicated internally, so the function makes its own lil copy, you don't gotta worry about keeping your string alive. ✨


πŸ¦‹ RETURN VALUE πŸ¦‹

  • 0 β€” success, slay, we ate πŸ’–
  • -1 β€” error, and errno is set (so go check her, she'll tell you what went wrong 😭)

πŸ’œ SEE ALSO πŸ’œ

  • ec_node_re(3) β€” go read her too, she's the main character of this whole node situation πŸ‘‘

Copyright (C) 2010-2026 Olivier Matz, Robin Jarry.


that's the whole page bestie, short and sweet fr fr 🌈 this was libecoli, dated 2026-06-11, and you just read EC_NODE_RE_SET_REGEXP(3) β€” go set some regexps, you got this πŸ’…βœ¨πŸ“

πŸ“¦ where this page comes from