NNG_STAT_BOOL(3)

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

πŸ’– NNG_STAT_BOOL(3) πŸ’–

okay bestie, come sit with me, we're reading a page from the NNG Reference Manual β€” it's nng_stat_bool, and yes it's a tiny one but it's lowkey iconic so let's go ✨


✨ NAME ✨

nng_stat_bool β€” get statistic Boolean value πŸŽ€


🌸 SYNOPSIS 🌸

#include <nng/nng.h>

typedef struct nng_stat nng_stat;

bool nng_stat_bool(nng_stat *stat);

πŸ¦‹ DESCRIPTION πŸ¦‹

so the nng_stat_bool() function hands you the Boolean value for the statistic stat. that's the whole vibe, that's the job πŸ’…

but bestie, listen β€” if that statistic is not of Boolean type, the result is indeterminate. not undefined-in-a-fun-way, undefined-in-a-why-are-you-like-this-way. so don't do that πŸ™ˆ

if you wanna know what types even exist, go check nng_stat_type() β€” it describes all the statistic types for you. no cap 🌈


πŸ‘‘ RETURN VALUES πŸ‘‘

the boolean value associated with stat. that's it. that's the tea β˜•


πŸ’€ ERRORS πŸ’€

None. literally none. not a single one. she simply does not miss 😭


🫢 SEE ALSO 🫢


and that's the page!! this lil baddie comes to you courtesy of the NNG Reference Manual, dated 2026-06-30 β€” mwah, go read nng_stat_type() next, ily, bye πŸ’–πŸ§šβ­

πŸ“¦ where this page comes from