EC_NODE_UINT_GETVAL(3)
β¨ 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 π₯
0on success β ate, no notes, we love to see it β¨-1on error, anderrnois set so you can go find out what went wrong π
not me being dramatic but seriously, checkerrnoif you get-1, that's the whole point of it being set, iykyk π
π SEE ALSO π
go read her sisters, they're all iconic:
π COPYRIGHT π
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
- fedora 44: libecoli-devel 0.11.7-1.fc44 Β· BSD-3-Clause AND LicenseRef-Fedora-Public-Domain
- fedora 44: libecoli-devel 0.11.7-1.fc44 Β· BSD-3-Clause AND LicenseRef-Fedora-Public-Domain
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms