diff options
author | Tom Parker-Shemilt <palfrey@tevp.net> | 2018-11-20 23:17:58 +0000 |
---|---|---|
committer | Tom Parker-Shemilt <palfrey@tevp.net> | 2018-11-20 23:17:58 +0000 |
commit | 1c4e0deda910a2a9c304a3683aadf156f1dab60b (patch) | |
tree | f5a96abef5b6130890668d1fc651c20eafb4a3e9 | |
parent | 16f6fefee0ea7ba8e6bd024538b36294c49f931f (diff) | |
download | rust-libc-1c4e0deda910a2a9c304a3683aadf156f1dab60b.tar.gz |
Add strcase*
-rw-r--r-- | src/lib.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib.rs b/src/lib.rs index bea1102404..8057dbed6f 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -280,6 +280,9 @@ extern "C" { pub fn strdup(cs: *const c_char) -> *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 strcasestr(cs: *const c_char, ct: *const c_char) -> *mut c_char; + pub fn strcasecmp(s1: *const c_char, s2: *const c_char) -> c_int; + pub fn strncasecmp(s1: *const c_char, s2: *const c_char, n: size_t) -> c_int; pub fn strlen(cs: *const c_char) -> size_t; pub fn strnlen(cs: *const c_char, maxlen: size_t) -> size_t; #[cfg_attr( |