Correct implementation of memcmp

This commit is contained in:
Gav
2018-01-29 17:19:56 +01:00
parent 1e0b133841
commit c8c0879f3d
10 changed files with 18 additions and 14 deletions
+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)