Skip to content

Commit 290d4b1

Browse files
authored
Merge pull request rust-lang#349 from meh/master
Add memcpy and memmove
2 parents 23b69f3 + 988305b commit 290d4b1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/lib.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,8 +241,10 @@ extern {
241241
pub fn strxfrm(s: *mut c_char, ct: *const c_char, n: size_t) -> size_t;
242242
pub fn wcslen(buf: *const wchar_t) -> size_t;
243243

244-
pub fn memcmp(cx: *const c_void, ct: *const c_void, n: size_t) -> c_int;
245244
pub fn memchr(cx: *const c_void, c: c_int, n: size_t) -> *mut c_void;
245+
pub fn memcmp(cx: *const c_void, ct: *const c_void, n: size_t) -> c_int;
246+
pub fn memcpy(dest: *mut c_void, src: *const c_void, n: size_t) -> *mut c_void;
247+
pub fn memmove(dest: *mut c_void, src: *const c_void, n: size_t) -> *mut c_void;
246248
}
247249

248250
// These are all inline functions on android, so they end up just being entirely

0 commit comments

Comments
 (0)