Correct implementation of memcmp

This commit is contained in:
Gav committed 2018-01-29 17:19:56 +01:00
1 parent 1e0b133841
commit c8c0879f3d
10 files changed
+18 -14

No files matched your search

+1 -1
View File
@@ -22,7 +22,7 @@ pub unsafe extern "C" fn memcpy(dest: *mut u8, src: *const u8, n: usize) -> *mut
ext_memcpy(dest, src, n)
}
/// memcpy extern
/// memcmp extern
#[no_mangle]
pub unsafe extern "C" fn memcmp(s1: *const u8, s2: *const u8, n: usize) -> i32 {
ext_memcmp(s1, s2, n)