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

# nng\_msg\_header\_clear(3)

clear message header

## NAME

nng\_msg\_header\_clear - clear message header

## SYNOPSIS

```
#include <nng/nng.h>
void nng_msg_header_clear(nng_msg *msg);
```

## DESCRIPTION

The `nng_msg_clear()` function resets the header length of *msg* to zero.

## RETURN VALUES

None.

## ERRORS

None.

## SEE ALSO

[nng\_msg\_alloc(3)](/nng_msg_alloc/3.md), [nng\_msg\_free(3)](/nng_msg_free/3.md), [nng(7)](/nng/7.md)
