NNG_STAT_FIND(3)

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

πŸ’– NNG_STAT_FIND(3) πŸ’–

okay bestie, welcome to the NNG Reference Manual β€” this one's a little cutie from the NNG_STAT_FIND(3) page and it's genuinely so simple you're gonna be obsessed. no cap, it's giving "one job, does it well." πŸŽ€


✨ NAME ✨

nng_stat_find β€” find statistic by name πŸ”


🌸 SYNOPSIS 🌸

#include <nng/nng.h>

typedef struct nng_stat nng_stat;

nng_stat *nng_stat_find(nng_stat *stat, const char *name);

like, that's the whole thing. gorgeous. simple. iconic. πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

so nng_stat_find() goes digging through the statistics tree you hand it as stat, searching for a statistic whose name is name. if it finds one? it returns it, periodt. if not? you get NULL. that's it, that's the whole function, no drama. ✨

note bestie: if multiple statistics out here sharing that same name, only the first match gets returned. the rest are just standing there like πŸ‘οΈπŸ‘„πŸ‘οΈ. so don't come for me if you wanted the second one β€” it's first-come-first-served up in here.

🫢 RETURN VALUES 🫢

the matching statistic, or NULL if no match is found. she either shows up or she doesn't, and honestly? relatable. 😭


πŸ’€ ERRORS πŸ’€

none. literally none. not a single one. the way this function has zero problems… main character energy fr fr. πŸ‘‘


🌈 SEE ALSO 🌈


and that's the whole page, bestie! 🧚 this was from the NNG Reference Manual, dated 2026-06-30 β€” go forth and find your stats, you got this. slay, eat, leave no crumbs. πŸ’–βœ¨πŸŒΊ

πŸ“¦ where this page comes from