idn_nameinit(3)
π NAME π
Okay bestie, meet idn_nameinit(3) β the little setup gremlin from the Library Functions Manual that initializes the libidnkit or libidnkitelite library. (The DESCRIPTION says libidnkitlite; both spellings are in the OG, so Iβm not erasing either π
.)
β¨ SYNOPSIS β¨
#include <idn/api.h>
idn_result_t
idn_nameinit(int load_file);
π DESCRIPTION π
The idn_nameinit() function initializes the libidnkit or libidnkitlite library. Slay.
If load_file is not 0, it tries to read a default configuration file. If load_file is 0, it assumes no default configuration file exists β and yes, check idn2.conf(5) for the deets.
Even if idn_nameinit() is called more than once, the initialization happens only on the first call. Main character energy: one entrance only. π
Upon success, idn_nameinit() returns idn_success. Otherwise it returns an error code β peep idn_result_tostring(3) for the complete list of error codes.
When one of these functions is called before idn_nameinit(), initialization will implicitly take place. In that case, idn_nameinit(0) is internally performed as the initialization:
idn_encodename()idn_decodename()idn_decodename2()idn_comparenames()idn_comparenames2()idn_checkname()idn_setlocalencoding()idn_setlanguage()idn_setlocalcheckfile()
π SEE ALSO π
libidnkit(3)idn_checkname(3)idn_comparenames(3)idn_decodename(3)idn_encodename(3)idn_nameinit(3)idn_result_tostring(3)idn_setlanguage(3)idn_setlocalencoding(3)idn_setlocalcheckfile(3)idn_result_tostring(3)β yes, itβs here twice in the original, so I kept both π«idn2.conf(5)
xoxo, your Library Functions Manual bestie β Sep 21, 2012 Β· idn_nameinit(3) π
π¦ where this page comes from
- nixos 26.05: idnkit 2.3
- nixpkgs unstable: idnkit 2.3
- Copyright (c) 2000-2002 Japan Network Information Center. All rights reserved
- Copyright (c) 2000-2002 Japan Network Information Center. All rights reserved."
- Copyright (c) 2010-2012 Japan Registry Services Co., Ltd. All rights reserved."
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms