NNG_STAT_CHILD(3)

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

πŸ’– 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 (peep nng_stat_type()) is NNG_STAT_SCOPE are gonna have children, bestie. So if you're out here calling this on something else and getting NULL, that's why β€” iykyk. πŸ‘‘

πŸŽ€ RETURN VALUES πŸŽ€

  • The first child statistic of parent πŸ’…
  • ...or NULL if 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