summaryrefslogtreecommitdiff
path: root/docs/reference/src/msg/nng_msg_len.md
blob: 7a165138d9e3bf94fbe64c1a26b66c94421b6a07 (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
28
# nng_msg_len

## NAME

nng_msg_len --- return message body length

## SYNOPSIS

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

size_t nng_msg_len(nng_msg *msg);
```

## DESCRIPTION

The `nng_msg_len()` returns the length of the body of [message][msg] _msg_.

## RETURN VALUES

Length of message body.

## SEE ALSO

[nng_msg_alloc](nng_msg_alloc),
[nng_msg_body](nng_msg_body)

{{#include ../refs.md}}