Skip to content

Commit

Permalink
android: add memmem
Browse files Browse the repository at this point in the history
  • Loading branch information
tibordp committed May 17, 2023
1 parent 07f7c83 commit 47c881d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions libc-test/semver/android.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3186,6 +3186,7 @@ memalign
memchr
memcmp
memcpy
memmem
memmove
memrchr
memset
Expand Down
7 changes: 7 additions & 0 deletions src/unix/linux_like/android/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3549,6 +3549,13 @@ extern "C" {

pub fn sync();
pub fn syncfs(fd: ::c_int) -> ::c_int;

pub fn memmem(
haystack: *const ::c_void,
haystacklen: ::size_t,
needle: *const ::c_void,
needlelen: ::size_t,
) -> *mut ::c_void;
}

cfg_if! {
Expand Down

0 comments on commit 47c881d

Please sign in to comment.