|
NAMEsgetu8 —
utf-8 library function manual page
SYNOPSIS#include <utf-8.h>
unsigned int
unsigned int
DESCRIPTIONThesgetu8 () function of utf-8 library reads a sequence
of one or more characters from a UTF-8 formatted string, which it converts to
a single UTC-4 (Unicode) value.
The RETURN VALUESIf string is NULL, or if a premature end-of-string condition occurs,sgetu8 () returns
EOF. If string contains valid
UTF-8 codes, sgetu8 () returns the converted UTC-4
value. Otherwise, it returns UTF8INVALID, defined in
⟨utf-8.h⟩.
Additionally, if chars is not NULL,
SEE ALSOlibutf-8(3), fgetu8(3), fputu8(3), sputu8(3)F. Yergeau, UTF-8, a transformation format of Unicode and ISO 10646, RFC2044. D. Goldsmith, M. Davis, Using Unicode with MIME, RFC1641. STANDARDSISO 10646-1: 1993 (``Unicode''), RFC 2044: 1996 (``UTF-8''), ANSI X3.159-1989 (“ANSI C89”).DIAGNOSTICSYou should always check the RETURN VALUES against EOF and UTF8INVALID.AUTHORSThis manual page was written by G. Adam Stanislav ⟨adam@whizkidtech.net⟩.BUGSNone known.
Visit the GSP FreeBSD Man Page Interface. |