idn2_check_version(3)
π idn2_check_version β the libidn2 manual page, but make it cute π
okay bestie, so this is idn2_check_version(3), a lil function from libidn2 that's basically a vibe check for your library version. yes it's a whole manpage for one function. no we're not skipping anything. let's go π¦
β¨ NAME β¨
idn2_check_version β API function π
πΈ SYNOPSIS πΈ
#include <idn2.h>
const char * idn2_check_version(const char * req_version);
like. it's giving "one include, one function, zero drama" π
π ARGUMENTS π
const char * req_versionβ the version string you wanna compare against, orNULL. that's it. that's the whole arg. she's low maintenance π
π DESCRIPTION π
so what does she DO? she checks the IDN2 library version. iconic behaviour honestly. and not only that β you can also use her to literally read out the version of the library code you're running. two jobs, one function, main character energy fr fr π
for a good req_version string, look at IDN2_VERSION β that one matches the version of the idn2.h header file. normally those two numbers match up all cute and consistent β¨ but heads up: if you're running an application that was built against an older libidn2 but linked against a newer libidn2 shared library, those two versions will be different. and that's the exact situation this function exists to catch. slay.
Return value: she checks that the library version is at minimum the one you handed her in req_version, and then returns the actual version string of the library. if the condition isn't met? she returns NULL. simple as that π and if you pass NULL in as req_version, no check happens at all β she just hands you the version string and minds her business. periodt.
π REPORTING BUGS π
found a bug? don't suffer in silence, tell the people:
- 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 you can share her around. she's generous like that π«Ά)
π SEE ALSO π
the full documentation for libidn2 lives in a Texinfo manual, and if the info program and the libidn2 programs are properly installed at your site, this command:
info libidn2
should give you access to the complete manual β¨ as an alternative, you can grab the manual from:
https://www.gnu.org/software/libidn/libidn2/manual/
ngl, that's the whole page. one function, fully documented, no cap π
mwah π this was idn2_check_version(3) from libidn2, version 2.3.8 β go forth and version-check responsibly, bestie π§ββοΈ
π¦ 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