summaryrefslogtreecommitdiff
path: root/docs/ref/stat/nng_stat_name.adoc
blob: ab9e2ace6d18e96a2d2bd07c272c88112ec33790 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
## nng_stat_name

Get statistic name.

### Synopsis

```c
#include <nng/nng.h>

typedef struct nng_stat nng_stat;

const char *nng_stat_name(nng_stat *stat);
```

### Description

The `nng_stat_name` function returns the name for the statistic _stat_.

NOTE: The global root statistic will have the empty string ("") as it's name.

### Return Values

The name of statistic _stat_.

### See Also

xref:nng_stats_get.adoc[nng_stats_get]