idn2_free(3)
π idn2_free(3) β the libidn2 girlies' guide π
okay bestie, welcome to the libidn2 manual, section 3 (that's the library-functions girlies, not the command-line ones, iykyk). today's episode: idn2_free. it's short. it's sweet. it's giving "one job and she does it." π
β¨ NAME β¨
idn2_free β API function πΈ
like. that's it. that's the name. she's an API function and she knows it. π
β¨ SYNOPSIS β¨
the vibe check, verbatim:
#include <idn2.h>
void idn2_free(void * ptr);
no cap, that's the whole thing. void in, void out, main character energy. π
β¨ ARGUMENTS β¨
void * ptrβ pointer to deallocate π«Ά
that's the one (1) thing you hand her. it's a pointer. she's gonna deallocate it. periodt.
β¨ DESCRIPTION β¨
so what does she actually do? she calls free(3) on the given pointer. that's it. that's the whole plot. π₯
but here's the lore you actually need, bestie: this function is typically only useful on systems where the library malloc heap is different from the library caller malloc heap. and when does that happen? on Windows, when the library is a separate DLL. πͺβ¨
basically: if you and the library are shopping in different malls, you can't just return your stuff at her customer service desk β you gotta go through her. so you call idn2_free, and she takes care of it on the correct heap. it's giving long-distance bestie coordination. ππ
β¨ REPORTING BUGS β¨
found a bug? don't suffer in silence, bestie, tell the devs!! π
- Report bugs to
<help-libidn@gnu.org>. π - General guidelines for reporting bugs:
https://www.gnu.org/gethelp/ - Libidn2 home page:
https://www.gnu.org/software/libidn2/
β¨ COPYRIGHT β¨
Copyright Β© 2002-2025 Simon Josefsson. π
Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. (yes queen, redistribute responsibly π )
β¨ SEE ALSO β¨
The full documentation for libidn2 is maintained as a Texinfo manual. if the info and libidn2 programs are properly installed at your site, the command
info libidn2
should give you access to the complete manual. πβ¨
as an alternative you may obtain the manual from:
https://www.gnu.org/software/libidn/libidn2/manual/
π«Ά friendly reminder from your local Unix bestie: idn2_free is here for the cross-heap girlies (Windows DLL situations, you know who you are). if that's not your setup, she might lowkey be doing nothing for you β but she's still iconic for existing.
and that's a wrap on libidn2 version 2.3.8, page idn2_free(3) π thanks for coming to my ted talk, go forth and deallocate responsibly, mwah! πππ¦
π¦ where this page comes from
- alpine 3.23: libidn2-doc 2.3.8-r0 Β· GPL-2.0-or-later OR LGPL-3.0-or-later
- alpine 3.24: libidn2-doc 2.3.8-r0 Β· GPL-2.0-or-later OR LGPL-3.0-or-later
- arch rolling: libidn2 2.3.8-1 Β· GPL2 AND LGPL3
- debian trixie: libidn2-dev 2.3.8-2 Β· GPL-3.0-or-later
- fedora 43: libidn2-devel 2.3.8-2.fc43 Β· (GPL-2.0-or-later OR LGPL-3.0-or-later) AND GPL-3.0-or-later
- fedora 43: libidn2-devel 2.3.8-2.fc43 Β· (GPL-2.0-or-later OR LGPL-3.0-or-later) AND GPL-3.0-or-later
- fedora 44: libidn2-devel 2.3.8-3.fc44 Β· (GPL-2.0-or-later OR LGPL-3.0-or-later) AND GPL-3.0-or-later
- fedora 44: libidn2-devel 2.3.8-3.fc44 Β· (GPL-2.0-or-later OR LGPL-3.0-or-later) AND GPL-3.0-or-later
- opensuse-leap 16.0: libidn2-devel 2.3.8-160000.2.2 Β· (GPL-2.0-or-later OR LGPL-3.0-or-later) AND GPL-3.0-or-later
- opensuse-leap 16.0: libidn2-devel 2.3.8-160000.2.2 Β· (GPL-2.0-or-later OR LGPL-3.0-or-later) AND GPL-3.0-or-later
- opensuse-leap 16.0: libidn2-devel 2.3.8-160000.2.2 Β· (GPL-2.0-or-later OR LGPL-3.0-or-later) AND GPL-3.0-or-later
- opensuse-leap 16.0: libidn2-devel 2.3.8-160000.2.2 Β· (GPL-2.0-or-later OR LGPL-3.0-or-later) AND GPL-3.0-or-later
- ubuntu questing: libidn2-dev 2.3.8-4
- ubuntu resolute: libidn2-dev 2.3.8-4build1 Β· GPL-3.0-or-later
- ubuntu stonking: libidn2-dev 2.3.8-5 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms