Skip to content

Commit 11f939a

Browse files
joboettgross35
authored andcommitted
Windows: add wcsnlen
1 parent 833eb19 commit 11f939a

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

libc-test/semver/windows.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -348,6 +348,7 @@ utimbuf
348348
wchar_t
349349
wchmod
350350
wcslen
351+
wcsnlen
351352
wcstombs
352353
wexecl
353354
wexecle

src/windows/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -371,6 +371,7 @@ extern "C" {
371371
pub fn strtok(s: *mut c_char, t: *const c_char) -> *mut c_char;
372372
pub fn strxfrm(s: *mut c_char, ct: *const c_char, n: size_t) -> size_t;
373373
pub fn wcslen(buf: *const wchar_t) -> size_t;
374+
pub fn wcsnlen(str: *const wchar_t, numberOfElements: size_t) -> size_t;
374375
pub fn wcstombs(dest: *mut c_char, src: *const wchar_t, n: size_t) -> size_t;
375376

376377
pub fn memchr(cx: *const c_void, c: c_int, n: size_t) -> *mut c_void;

0 commit comments

Comments
 (0)