NNG_MSG_CLEAR(3)

πŸ“¦
version 1.12.0 Β· 4 versions
, in ubuntu stonking

✨ 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