NNG_STAT_VALUE(3)

πŸ“¦
version 1.12.0 Β· 4 versions
, in ubuntu stonking

✨ 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