Function gnunet_sys::GNUNET_STRINGS_from_utf8[][src]

pub unsafe extern "C" fn GNUNET_STRINGS_from_utf8(
    input: *const c_char,
    len: usize,
    charset: *const c_char
) -> *mut c_char

Convert the len bytes-long UTF-8 string given in input to the given charset.

@param input the input string (not necessarily 0-terminated) @param len the number of bytes in the @a input @param charset character set to convert to @return the converted string (0-terminated), if conversion fails, a copy of the original string is returned.