EC_NODE_UINT_GETVAL(3)

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

✨ EC_NODE_UINT_GETVAL ✨

okay bestie, welcome to Libecoli Programmer's Manual</b>, section 3 πŸ’– this one is about ec_node_uint_getval and it's literally so simple you'll be obsessed.


πŸŽ€ NAME πŸŽ€

ec_node_uint_getval β€” get the value of a parsed unsigned integer, no cap πŸ’…


🌸 SYNOPSIS 🌸

first things first, you gotta pull in the header:

#include <ecoli/node_int.h>

then here's the whole function, look at her:

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

so like, quick vibe check on the parameters πŸ¦‹:

  • node β€” the unsigned integer node. const, obviously, she's not getting modified, she's just here to be looked at πŸ’…
  • str β€” the string to parse. the raw text you're feeding in πŸ“
  • result β€” a pointer where the result will be stored on success. so if it works, this is where the parsed value lands. if it doesn't work... it does not land, bestie πŸ™ˆ

πŸ”₯ RETURN VALUE πŸ”₯

  • 0 on success β€” ate, no notes, we love to see it ✨
  • -1 on error, and errno is set so you can go find out what went wrong πŸ’€
not me being dramatic but seriously, check errno if you get -1, that's the whole point of it being set, iykyk πŸ‘‘

πŸ’œ SEE ALSO πŸ’œ

go read her sisters, they're all iconic:


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


and that's the whole page, bestie!! this was pulled straight from the libecoli sources, dated 2026-06-11 β€” and honestly? the way she's still out here documenting unsigned integer parsing with main character energy. periodt. πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from