ecoli_node_int(3)
β¨ ecoli_node_int π β the integer node manual, bestie edition
okay so picture this: you're deep in Libecoli land (manual section 3, iykyk) and you need nodes that match integers. Not vibes. Actual integers. This page is your girl. π«Ά
πΈ NAME πΈ
ecoli_node_int β the Integer node, bestie.
- Nodes that match signed or unsigned integers. That's the whole personality. π
β¨ SYNOPSIS β¨
the functions, bestie (aka Functions)
struct ec_node * ec_node_int (const char *id, int64_t min, int64_t max,
unsigned int base)
int ec_node_int_getval (const struct ec_node *node, const char *str,
int64_t *result)
struct ec_node * ec_node_uint (const char *id, uint64_t min, uint64_t
max, unsigned int base)
int ec_node_uint_getval (const struct ec_node *node, const char *str,
uint64_t *result)
likeβ¦ four whole functions. we love a compact icon. π
π¦ Detailed Description π¦
Nodes that match signed or unsigned integers. periodt. That's literally the detailed description and honestly she said what she said.
π Configuration Schema π
this is the schema for int, no cap:
schema int {
int64 min {
description "The minimum valid value (included).";
}
int64 max {
description "The maximum valid value (included).";
}
uint64 base {
description "The base to use. If unset or 0, try to guess.";
}
}
and here's the other Configuration Schema, for uint this time π:
schema uint {
uint64 min {
description "The minimum valid value (included).";
}
uint64 max {
description "The maximum valid value (included).";
}
uint64 base {
description "The base to use. If unset or 0, try to guess.";
}
}
note the glow-up between the two:intusesint64formin/max,uintusesuint64. same energy, different signedness. π
π₯ Function Documentation π₯
π struct ec_node* ec_node_int (const char * id, int64_t min, int64_t max, unsigned int base)
Create a signed integer node. yes bestie, signed. πΈ
Parameters
idβ The node identifier.minβ The minimum valid value (included).maxβ The maximum valid value (included).baseβ The base to use for parsing. If0, try to guess from prefix.
Returns
The node, or NULL on error (errno is set). so likeβ¦ check your return value, bestie, i'm begging π
π int ec_node_int_getval (const struct ec_node * node, const char * str, int64_t * result)
Get the value of a parsed signed integer. this is the one that actually reads your string and hands you the number. iconic. β¨
Parameters
nodeβ The integer node.strβ The string to parse.resultβ Pointer where the result will be stored on success.
Returns
0 on success, -1 on error (errno is set). classic zero-for-slaying, minus-one-for-oop. π
π§ struct ec_node* ec_node_uint (const char * id, uint64_t min, uint64_t max, unsigned int base)
Create an unsigned integer node. negative numbers? not invited to this party. π
Parameters
idβ The node identifier.minβ The minimum valid value (included).maxβ The maximum valid value (included).baseβ The base to use for parsing. If0, try to guess from prefix.
Returns
The node, or NULL on error (errno is set). fr fr, errno is set, so go look at it. π
π int ec_node_uint_getval (const struct ec_node * node, const char * str, uint64_t * result)
Get the value of a parsed unsigned integer. the unsigned sibling, equally slay. π
Parameters
nodeβ The unsigned integer node.strβ The string to parse.resultβ Pointer where the result will be stored on success.
Returns
0 on success, -1 on error (errno is set). π
π Author π
Generated automatically by Doxygen for Libecoli from the source code. so nobody hand-wrote this and yet she's still serving. we love an auto-generated main character. π
lowkey reminder bestie:minandmaxare included in the valid range, andbaseof0means "try to guess from prefix." that's it, that's the lore. π
Version 0.11.3 π dated Thu Apr 9 2026 πΈ β and that's the whole page, bestie. go forth and match some integers. mwah. πβ¨
π¦ where this page comes from
- epel 9: libecoli-devel 0.11.3-1.el9 Β· BSD-3-Clause AND LicenseRef-Fedora-Public-Domain
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms