std::mbrtoc8

Header: <cuchar>

Converts a narrow multibyte character to UTF-8 encoding.

# Declarations

std::size_t mbrtoc8( char8_t* pc8,
const char* s,
std::size_t n,
std::mbstate_t* ps );

(since C++20)

# Parameters

# Return value

The first of the following that applies:

# Example

This section is incompleteReason: no example

# See also