Skip to content
Snippets Groups Projects
Unverified Commit 3913f5c4 authored by Matthias Schiffer's avatar Matthias Schiffer
Browse files

unix: add strndup()

Add strndup(), as specified by POSIX.1-2008.
parent 4c07b661
No related branches found
No related tags found
No related merge requests found
......@@ -525,6 +525,7 @@ extern "C" {
pub fn strspn(cs: *const c_char, ct: *const c_char) -> size_t;
pub fn strcspn(cs: *const c_char, ct: *const c_char) -> size_t;
pub fn strdup(cs: *const c_char) -> *mut c_char;
pub fn strndup(cs: *const c_char, n: size_t) -> *mut c_char;
pub fn strpbrk(cs: *const c_char, ct: *const c_char) -> *mut c_char;
pub fn strstr(cs: *const c_char, ct: *const c_char) -> *mut c_char;
pub fn strcasecmp(s1: *const c_char, s2: *const c_char) -> c_int;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment