utf8rewind
 All Files Functions Typedefs
example-encode.c

Encode a Unicode codepoint to UTF-8. Unicode codepoints must be in the range 0 - U+FFFFFF. Larger codepoints exist, but cannot be encoded in a single 32-bit integer.

Parameters
codePointUnicode codepoint.
targetString to write the result to.
targetSizeAmount of bytes remaining in the string.
Returns
Length in bytes or 0 on failure.