NNG_URL_FREE(3)

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

✨ NNG_URL_FREE(3) ✨

okay bestie, welcome to the NNG Reference Manual πŸ’– this is the page for nng_url_free, and honestly? it's giving "tiny function, huge responsibility." let's get into it 🫢


🌸 NAME 🌸

nng_url_free β€” free a URL structure πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

#include <nng/nng.h>

void nng_url_free(nng_url *url);

like, that's it. that's the whole vibe. one include, one call. iconic. ✨


πŸ¦‹ DESCRIPTION πŸ¦‹

so the nng_url_free() function deallocates the url entirely β€” and when we say entirely, we mean entirely, bestie. not just the struct itself. every single one of its members goes too. all of it. gone. πŸ’€

so if you parsed a URL earlier and you're done with it, this is your girl. she takes the whole thing down, members and all, no leftovers, no crumbs. 🧹✨

fr fr, don't touch that url after you free it. it's not yours anymore, it's the allocator's problem now.

⭐ RETURN VALUES ⭐

None. zero. nada. it returns void, because what would it even say? "you're welcome"? 😭


πŸ’œ ERRORS πŸ’œ

None. she cannot fail. she simply frees. main character energy, no notes. πŸ‘‘


🌈 SEE ALSO 🌈


okay that's the whole page, bestie, you ate that πŸ“ if you're out here cloning URLs, parsing URLs, or just vibing with the general nng situation, all of those are linked above, iykyk πŸ’…

and that's a wrap!! this lil masterpiece lives in the NNG Reference Manual, dated 2026-06-30. mwah. go free something. πŸŒΈπŸ¦‹βœ¨

πŸ“¦ where this page comes from