NN_FREEMSG(3compat)
π NN_FREEMSG(3compat) β nng reference manual, bestie edition π
okay so this one's from the nng reference manual, compat chapter, and it's literally the "clean up after yourself" bestie of the family. let's get into it β¨
πΈ NAME πΈ
nn_freemsg β free message (compatible API)
β¨ SYNOPSIS β¨
#include <nanomsg/nn.h>
int nn_freemsg(void *msg);
π¦ DESCRIPTION π¦
so nn_freemsg() deallocates a message that was previously allocated with nn_allocmsg() or similar functions. that's it. that's the whole vibe. you made a message, now you're releasing it back into the wild. cleanup era π
π«Ά note note note: this function is provided for API compatibility with legacy libnanomsg. Consider using the relevant modern API instead. like, it's giving "we keep it around for the old heads" energy β not saying you should build your whole personality on it, iykyk.
π RETURN VALUES π
this function always returns 0. always. no cap. it's the most unproblematic return value you will ever meet π
π ERRORS π
None. not one. zero. the error section is literally empty, she ate and left no crumbs π
π₯ SEE ALSO π₯
okay that's the whole page, short and sweet, main character energy only π and yeah β this cutie is dated 2026-01-13 and lives in the NNG Reference Manual, so go forth and free your messages responsibly, bestie ππ§
π¦ where this page comes from
- alpine 3.24: nng-doc 1.11-r0 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms