summaryrefslogtreecommitdiff
path: root/docs/reference/src/msg/nng_msg_clear.md
blob: 54dcbbde950e9278e0604644b3eb3615e1c0a79f (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_clear

## NAME

nng_msg_clear --- clear message body content

## SYNOPSIS

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

void nng_msg_clear(nng_msg *msg);
```

## DESCRIPTION

The `nng_msg_clear()` function resets the body length of [message][msg] _msg_ to zero.

## SEE ALSO

[nng_msg_alloc][nng_msg_alloc],
[nng_msg_capacity][nng_msg_capacity],
[nng_msg_reserve][nng_msg_reserve]

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