idna_to_ascii_lz.3   [plain text]


.\" DO NOT MODIFY THIS FILE!  It was generated by gdoc.
.TH "idna_to_ascii_lz" 3 "0.6.14" "libidn" "libidn"
.SH NAME
idna_to_ascii_lz \- convert Unicode domain name label to text
.SH SYNOPSIS
.B #include <idna.h>
.sp
.BI "int idna_to_ascii_lz(const char * " input ", char ** " output ", int " flags ");"
.SH ARGUMENTS
.IP "const char * input" 12
zero terminated input string encoded in the current locale's
character set.
.IP "char ** output" 12
pointer to newly allocated output string.
.IP "int flags" 12
an \fBIdna_flags\fP value, e.g., \fBIDNA_ALLOW_UNASSIGNED\fP or
\fBIDNA_USE_STD3_ASCII_RULES\fP.
.SH "DESCRIPTION"
Convert domain name in the locale's encoding to ASCII string.  The
domain name may contain several labels, separated by dots.  The
output buffer must be deallocated by the caller.
.SH "RETURN VALUE"
Returns \fBIDNA_SUCCESS\fP on success, or error code.
.SH "REPORTING BUGS"
Report bugs to <bug-libidn@gnu.org>.
.SH COPYRIGHT
Copyright \(co 2002, 2003, 2004, 2005, 2006, 2007 Simon Josefsson.
.br
Permission is granted to make and distribute verbatim copies of this
manual provided the copyright notice and this permission notice are
preserved on all copies.
.SH "SEE ALSO"
The full documentation for
.B libidn
is maintained as a Texinfo manual.  If the
.B info
and
.B libidn
programs are properly installed at your site, the command
.IP
.B info libidn
.PP
should give you access to the complete manual.