---
name: "nng_stat_next"
section: "3"
platform: "linux"
package: "libnng-dev"
version: "1.10.1-2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/nng_stat_next"
---

# nng\_stat\_next(3)

get next statistic

## NAME

nng\_stat\_next - get next statistic

## SYNOPSIS

```
#include <nng/nng.h>
typedef struct nng_stat nng_stat;
nng_stat *nng_stat_next(nng_stat *stat);
```

## DESCRIPTION

The `nng_stat_next()` function returns the next sibling statistic of the statistic *stat*. If no more siblings are present, then `NULL` is returned.

## RETURN VALUES

The next sibling statistic of *stat*, or NULL if *stat* is the last sibling.

## ERRORS

None.

## SEE ALSO

[libnng(3)](/libnng/3.md), [nng\_stat\_child(3)](/nng_stat_child/3.md), [nng\_stats\_get(3)](/nng_stats_get/3.md), [nng\_stat(5)](/nng_stat/5.md), [nng(7)](/nng/7.md)
