Function ctru_sys::encode_utf8

source ·
pub unsafe extern "C" fn encode_utf8(out: *mut u8, in_: u32) -> isize
Expand description

Convert a UTF-32 codepoint into a UTF-8 sequence

§Arguments

  • out (direction out) - Output sequence
  • in (direction in) - Input codepoint

§Returns

number of output code units produced -1 for error

Note: out must be able to store 4 code units