Adding wcsrtombs.

This commit is contained in:
Darley Barreto
2023-05-08 12:39:53 +00:00
committed by Jeremy Soller
parent 26a8e316f1
commit 7155005be2
4 changed files with 102 additions and 11 deletions
+1 -1
View File
@@ -1266,7 +1266,7 @@ pub unsafe extern "C" fn valloc(size: size_t) -> *mut c_void {
}
#[no_mangle]
pub extern "C" fn wcstombs(s: *mut c_char, mut pwcs: *const wchar_t, n: size_t) -> size_t {
pub unsafe extern "C" fn wcstombs(s: *mut c_char, mut pwcs: *const wchar_t, n: size_t) -> size_t {
let mut state: mbstate_t = mbstate_t {};
wcsrtombs(s, &mut pwcs, n, &mut state)
}