NNG_STAT_FIND(3)
π 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 π
libnng(3)nng_stat_child(3)nng_stat_find_dialer(3)nng_stat_find_listner(3)nng_stat_find_socket(3)nng_stats_get(3)nng_stat(5)nng(7)
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
- 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