NNG_STAT_CHILD(3)
π NAME π
nng_stat_child β bestie, this is the one that hands you the child statistic πΆβ¨
β¨ SYNOPSIS β¨
#include <nng/nng.h>
typedef struct nng_stat nng_stat;
nng_stat *nng_stat_child(nng_stat *parent);
πΈ DESCRIPTION πΈ
okay so listen. nng_stat_child() gives you the first child statistic of the statistic parent. That's it, that's the whole job. π«Ά
And if parent has no children at all? Then you get NULL. Not a vibe, but it is what it is. π
Tip π‘ Only stats whose type (peepnng_stat_type()) isNNG_STAT_SCOPEare gonna have children, bestie. So if you're out here calling this on something else and gettingNULL, that's why β iykyk. π
π RETURN VALUES π
- The first child statistic of parent π
- ...or
NULLif parent literally has no children, periodt.
π ERRORS π
None. Zero. Nada. Not a single error out here, she's flawless fr fr. β¨
π¦ SEE ALSO π¦
and that's the whole page, bestie!! π this was the NNG Reference Manual, and the page is dated 2026-06-30. go get those stats, main character ππ
π¦ 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