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

# Return value

The first of the following that applies:

# Example

This section is incompleteReason: no example

# See also