Skip to content

Commit b491fb3

Browse files
committed
Auto merge of #510 - Antti:add-wcstombs, r=alexcrichton
Add wcstombs Add `wcstombs` function to convert from wide chars to multibyte chars. The `wcstombs(`) function conforms to ISO/IEC 9899:1999 (ISO C99)
2 parents 5e16e98 + c01fd6f commit b491fb3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,7 @@ extern {
243243
pub fn strtok(s: *mut c_char, t: *const c_char) -> *mut c_char;
244244
pub fn strxfrm(s: *mut c_char, ct: *const c_char, n: size_t) -> size_t;
245245
pub fn wcslen(buf: *const wchar_t) -> size_t;
246+
pub fn wcstombs(dest: *mut c_char, src: *const wchar_t, n: size_t) -> ::size_t;
246247

247248
pub fn memchr(cx: *const c_void, c: c_int, n: size_t) -> *mut c_void;
248249
pub fn memcmp(cx: *const c_void, ct: *const c_void, n: size_t) -> c_int;

0 commit comments

Comments
 (0)