#include <nng/nng.h>
typedef struct nng_stat nng_stat;
const char *nng_stat_string(nng_stat *stat);
--- version: v1.5.2 layout: manpage_v2 title: nng_stat_string(3) ---
nng_stat_string - get statistic string value
#include <nng/nng.h>
typedef struct nng_stat nng_stat;
const char *nng_stat_string(nng_stat *stat);
The nng_stat_string() function returns a string value for the statistic stat,
which must be of type NNG_STAT_STRING (see nng_stat_type(3)).
If the statistic is not of type NNG_STAT_STRING, then NULL will be returned.
The returned string is valid until nng_stats_free() is called to
free the memory for the snapshot.
|
The string value associated with stat, or NULL if the statistic is not
a string type.
None.