mbrtoc8
Header: <uchar.h>
Converts a narrow multibyte character to UTF-8 encoding.
# Declarations
size_t mbrtoc8( char8_t * restrict pc8, const char * restrict s,
size_t n, mbstate_t * restrict ps );
(since C23)
# Parameters
pc8: pointer to the location where the resulting UTF-8 code units will be writtens: pointer to the multibyte character string used as inputn: limit on the number of bytes in s that can be examinedps: pointer to the conversion state object used when interpreting the multibyte string
# Return value
The first of the following that applies:
# Example
This section is incompleteReason: no example