summaryrefslogtreecommitdiff
path: root/docs/ref/msg/nng_msg_len.adoc
blob: 0f2d1ed04502f7363777c3828586dcec33bc4faa (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
## 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_.

### Return Values

Length of message body.

### See Also

xref:nng_msg_alloc.adoc[nng_msg_alloc],
xref:nng_msg_body.adoc[nng_msg_body],
xref:nng_msg_capacity.adoc[nng_msg_capacity]