![]() |
![]()
| ![]() |
![]()
NAMEidn_checkname - validate an internationalized domain name SYNOPSIS#include <idn/api.h> idn_result_t idn_checkname(idn_action_t actions, const char *from); DESCRIPTIONThe function idn_checkname() internally creates a copy of name, encodes it with idn_encodename() and returns its error code. In addition with action macros for idn_encodename() (e.g. IDN_UNICODECONV), the following macros are available for idn_checkname().
EXAMPLESThe program below shows an example of idn_checkname(). idn_result_t r; ... r = idn_checkname(IDN_CHECK_REGIST, name); if (r == idn_success) SEE ALSOidncheck(1), libidnkit(3), idn_encodename(3), idn_nameinit(3), idn_result_tostring(3), idn.conf(5)
|