Skip to content

Commit 4a9bf92

Browse files
authored
Merge pull request #1629 from lzutao/wmemchr
add wmemchr to all platforms support memchr (except wasi)
2 parents 0fc7fc6 + 723a2c7 commit 4a9bf92

File tree

5 files changed

+5
-0
lines changed

5 files changed

+5
-0
lines changed

src/cloudabi/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,7 @@ extern "C" {
259259
) -> ::size_t;
260260

261261
pub fn memchr(cx: *const c_void, c: c_int, n: size_t) -> *mut c_void;
262+
pub fn wmemchr(cx: *const wchar_t, c: wchar_t, n: size_t) -> *mut wchar_t;
262263
pub fn memcmp(cx: *const c_void, ct: *const c_void, n: size_t) -> c_int;
263264
pub fn memcpy(
264265
dest: *mut c_void,

src/fuchsia/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -3401,6 +3401,7 @@ extern "C" {
34013401
) -> ::size_t;
34023402

34033403
pub fn memchr(cx: *const c_void, c: c_int, n: size_t) -> *mut c_void;
3404+
pub fn wmemchr(cx: *const wchar_t, c: wchar_t, n: size_t) -> *mut wchar_t;
34043405
pub fn memcmp(cx: *const c_void, ct: *const c_void, n: size_t) -> c_int;
34053406
pub fn memcpy(
34063407
dest: *mut c_void,

src/unix/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -546,6 +546,7 @@ extern "C" {
546546
) -> ::size_t;
547547

548548
pub fn memchr(cx: *const c_void, c: c_int, n: size_t) -> *mut c_void;
549+
pub fn wmemchr(cx: *const wchar_t, c: wchar_t, n: size_t) -> *mut wchar_t;
549550
pub fn memcmp(cx: *const c_void, ct: *const c_void, n: size_t) -> c_int;
550551
pub fn memcpy(
551552
dest: *mut c_void,

src/vxworks/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1173,6 +1173,7 @@ extern "C" {
11731173
) -> ::size_t;
11741174

11751175
pub fn memchr(cx: *const c_void, c: c_int, n: size_t) -> *mut c_void;
1176+
pub fn wmemchr(cx: *const wchar_t, c: wchar_t, n: size_t) -> *mut wchar_t;
11761177
pub fn memcmp(cx: *const c_void, ct: *const c_void, n: size_t) -> c_int;
11771178
pub fn memcpy(
11781179
dest: *mut c_void,

src/windows/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -378,6 +378,7 @@ extern "C" {
378378
) -> ::size_t;
379379

380380
pub fn memchr(cx: *const c_void, c: c_int, n: size_t) -> *mut c_void;
381+
pub fn wmemchr(cx: *const wchar_t, c: wchar_t, n: size_t) -> *mut wchar_t;
381382
pub fn memcmp(cx: *const c_void, ct: *const c_void, n: size_t) -> c_int;
382383
pub fn memcpy(
383384
dest: *mut c_void,

0 commit comments

Comments
 (0)