NNG_MSG_HEADER_CLEAR(3)

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

πŸ’– NNG_MSG_HEADER_CLEAR πŸ’–

okay bestie, welcome to the NNG Reference Manual</> 🌸 this one's a lil baby page, like the shortest lil cutie in the whole header-management friend group, but she matters, so let's give her her moment ✨


✨ NAME ✨

nng_msg_header_clear β€” clear message header 🧹


✨ SYNOPSIS ✨

#include <nng/nng.h>

void nng_msg_header_clear(nng_msg *msg);

✨ DESCRIPTION ✨

okay so here's the whole vibe: the nng_msg_clear() function resets the header length of msg to zero. that's it. that's the whole thing. no drama, no side quests, just header length β†’ 0 πŸ’…

think of it like wiping the whiteboard clean, except the whiteboard is your message header and you don't even get a lil squeaky eraser sound 🫢


✨ RETURN VALUES ✨

None. literally nothing. she gives you nothing back and expects nothing in return, which is honestly such main character energy πŸ‘‘


✨ ERRORS ✨

None. zero. nada. no error codes, no sad little return values, no cryptic errno jumpscares 😭 she does not do failure, periodt.


✨ SEE ALSO ✨

your homework, bestie πŸ“š go read these:


ngl this is the most chill function in the entire library. no options, no flags, no environment variables, no exit statuses, no signals, no warnings, no bugs noted, no authours credited in this page, and no license lines hiding in here either. just pure, unbothered, header-clearing serenity πŸ¦‹

and that's the whole page, bestie!! πŸŽ€ this lil slice of the NNG Reference Manual</> is dated 2026-06-30, so go forth and clear those headers with confidence ✨ mwah πŸ’‹ πŸ’–

πŸ“¦ where this page comes from