NNG_STAT_VALUE(3)
β¨ NNG_STAT_VALUE β¨
okay so this is the nng_stat_value(3) page from the NNG Reference Manual, bestie π and it's literally about getting a number out of a statistic. tiny page, huge vibes, let's go π
πΈ NAME πΈ
nng_stat_value β get statistic numeric value π
that's it. that's the whole job. she gets the number. icon behavior.
π¦ SYNOPSIS π¦
#include <nng/nng.h>
typedef struct nng_stat nng_stat;
uint64_t nng_stat_value(nng_stat *stat);
like, yes, that's the whole incantation β¨ you include the header, you have the opaque nng_stat struct, and you call it with a pointer and get a uint64_t back. no cap.
π DESCRIPTION π
So the way that nng_stat_value() works is: you hand it a statistic stat, and it returns a numeric value for it. that's the whole thing, that's the assignment, and she ate π₯
BUT. real talk. if the statistic is not of numeric type, then it just returns zero. zero. nada. the void. π so if you're getting zeros back and you're like "bestie why", maybe check the type first, because a non-numeric stat is not gonna give you the digits you're looking for.
and if you wanna know what the actual statistic types are, go read nng_stat_type() β she has a description of all of them. iykyk π§
π RETURN VALUES π
she returns the numeric value associated with stat. yes queen, that's the number, that's the tea π
π ERRORS π
None.
not a single one. no errors, no surprises, no drama, main character energy honestly πβ¨
π₯ SEE ALSO π₯
go read those too, they're all part of the friend group π«Ά
and that's the page bb π this was NNG_STAT_VALUE(3), dated 2026-06-30, coming to you straight out of the NNG Reference Manual. mwah, stay slay, go read your stats ππ πΈ
π¦ where this page comes from
- ubuntu stonking: libnng-dev 1.12.0-1 Β· MIT OR Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms