EC_NODE_INT_GETVAL(3)

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

✨ EC_NODE_INT_GETVAL(3) ✨

okay bestie, welcome to the Libecoli Programmer's Manual πŸ’– this is the page for ec_node_int_getval and it's literally the moment your signed integer goes from "some text" to "a real number, fr fr" πŸ”₯


🌸 NAME 🌸

ec_node_int_getval β€” grab the value of a parsed signed integer 🧚✨


πŸ’… SYNOPSIS πŸ’…

#include <ecoli/node_int.h>

int ec_node_int_getval(
    const struct ec_node   *node,    /* The integer node. */
    const char             *str,     /* The string to parse. */
    /*
     * Pointer where the result will be stored on success.
     */
    int64_t                *result
);

πŸ‘‘ DESCRIPTION πŸ‘‘

so like, ec_node_int_getval is the girl who takes a node (the integer node), the str (the string you wanna parse), and a pointer to result β€” and that pointer is where the value gets parked once everything goes well πŸŽ€ on success the parsed result lands in result, no cap.


🫢 RETURN VALUE 🫢

  • 0 β€” slay, it worked πŸ’–
  • -1 β€” nope, error, and errno gets set 😭

πŸ¦‹ SEE ALSO πŸ¦‹


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


kisses, this was the libecoli manual, dated 2026-06-11, page EC_NODE_INT_GETVAL(3) πŸ’œ go parse something iconic, periodt πŸ’…βœ¨

πŸ“¦ where this page comes from