|
NAMEsputu8 —
utf-8 library function manual page
SYNOPSIS#include <utf-8.h>
char *
char *
DESCRIPTIONThesputu8 () function of utf-8 library converts a UTC-4
(31-bit Unicode) integer to a sequence of one or more characters representing
its UTF-8 value, and writes the result to a buffer (character string). It
appends a NUL at the end of the buffer, so it can be processed as a standard C
string.
The RETURN VALUESsputu8 () returns the pointer to the terminating NUL.
This allows you to append the next sequence of characters without having to
determine where the string ends after each call to
sputu8 ().
If buffer is NULL,
SEE ALSOlibutf-8(3), fgetu8(3), fputu8, sgetu8(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 compare the RETURN VALUES to buffer. If they are NULL, no conversion took place. Otherwise, if they are identical, c was not a valid UTC-8 integer. Anything else indicates successful conversion.AUTHORSThis manual page was written by G. Adam Stanislav ⟨adam@whizkidtech.net⟩.BUGSNone known.
Visit the GSP FreeBSD Man Page Interface. |