NNG_STAT_NAME(3)
π nng_stat_name β get statistic name π
okay bestie, welcome to the nng_stat_name(3) page from the NNG Reference Manual β¨ this one is short and sweet, lowkey the easiest read in the whole manual, and honestly? iconic for that.
πΈ SYNOPSIS πΈ
#include <nng/nng.h>
typedef struct nng_stat nng_stat;
const char *nng_stat_name(nng_stat *stat);
π DESCRIPTION π
so nng_stat_name() hands you back the name of the statistic stat. that's it. that's the whole function. she's a one-job girlie and she does her job flawlessly π
note bestie, pay attention: the global root statistic has the empty string ("") as its name. not a name that looks empty β literally the empty string. so if you're out here getting an empty name back, that's not a bug, that's the root, and she's just built different π«Ά
β RETURN VALUES β
the name of statistic stat β¨
π ERRORS π
None. like, zero. no errors on the menu. not even a little one. she cannot fail, she can only serve ππ
π₯ SEE ALSO π₯
that's the whole vibe, bestie β go forth and name your stats ππ¦ this page is from the NNG Reference Manual, dated 2026-06-30, and it's literally called NNG_STAT_NAME(3) at the footer, so now you know exactly where she came from π mwah, stan a one-line getter, periodt π
π¦ 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