Skip to content

Commit 1c4e0de

Browse files
committed
Add strcase*
1 parent 16f6fef commit 1c4e0de

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,9 @@ extern "C" {
280280
pub fn strdup(cs: *const c_char) -> *mut c_char;
281281
pub fn strpbrk(cs: *const c_char, ct: *const c_char) -> *mut c_char;
282282
pub fn strstr(cs: *const c_char, ct: *const c_char) -> *mut c_char;
283+
pub fn strcasestr(cs: *const c_char, ct: *const c_char) -> *mut c_char;
284+
pub fn strcasecmp(s1: *const c_char, s2: *const c_char) -> c_int;
285+
pub fn strncasecmp(s1: *const c_char, s2: *const c_char, n: size_t) -> c_int;
283286
pub fn strlen(cs: *const c_char) -> size_t;
284287
pub fn strnlen(cs: *const c_char, maxlen: size_t) -> size_t;
285288
#[cfg_attr(

0 commit comments

Comments
 (0)