NNG_MSG_CLEAR(3)
β¨ NNG_MSG_CLEAR β¨
okay bestie, welcome to the NNG Reference Manual π this is NNG_MSG_CLEAR(3) and it is genuinely the shortest lil glow-up in the whole library. no cap.
πΈ NAME πΈ
nng_msg_clear β clear message body content
like, the whole personality of this function is "make the body empty." that's it. that's the vibe. π
π¦ SYNOPSIS π¦
#include <nng/nng.h>
void nng_msg_clear(nng_msg *msg);
periodt. look at her. returning void, taking one pointer, zero drama. π
π DESCRIPTION π
The nng_msg_clear() function resets the body length of msg to zero. β¨
that's literally it, and honestly? iconic. your message keeps being a message, it just doesn't have any body content anymore. the length goes bye-bye, hits zero, done. nothing else about msg gets touched β we're only talking about the body length, so don't go reading into it. π
π«Ά RETURN VALUES π«Ά
None.
she gives you nothing back because she has nothing to give back. no return value, no notes, no follow-up. the way that a void function justβ¦ exists. π
π ERRORS π
None.
can't fail if you never try β¨ β no error states, no errno behaviour, nothing to check. just call it and go about your day, bestie. π
π SEE ALSO π
π‘ fr fr: if you came here looking for something complicated, this is not that page. this is the "one line of C, one line of docs" page and we respect her for it. π
and that's the whole manual page, babes π§ source says NNG Reference Manual, dated 2026-06-30 β mwah, go clear some messages ππΈπ¦
π¦ where this page comes from
- ubuntu stonking: libnng-dev 1.12.0-1 Β· MIT OR Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms