Skip to content

Commit 47c881d

Browse files
committed
android: add memmem
1 parent 07f7c83 commit 47c881d

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

libc-test/semver/android.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3186,6 +3186,7 @@ memalign
31863186
memchr
31873187
memcmp
31883188
memcpy
3189+
memmem
31893190
memmove
31903191
memrchr
31913192
memset

src/unix/linux_like/android/mod.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3549,6 +3549,13 @@ extern "C" {
35493549

35503550
pub fn sync();
35513551
pub fn syncfs(fd: ::c_int) -> ::c_int;
3552+
3553+
pub fn memmem(
3554+
haystack: *const ::c_void,
3555+
haystacklen: ::size_t,
3556+
needle: *const ::c_void,
3557+
needlelen: ::size_t,
3558+
) -> *mut ::c_void;
35523559
}
35533560

35543561
cfg_if! {

0 commit comments

Comments
 (0)