Skip to content

Commit db5a415

Browse files
committed
haiku posix layer adding locale flavor of strcasecmp api
1 parent ad3ce34 commit db5a415

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/unix/haiku/mod.rs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1984,6 +1984,17 @@ extern "C" {
19841984
longopts: *const option,
19851985
longindex: *mut ::c_int,
19861986
) -> ::c_int;
1987+
pub fn strcasecmp_l(
1988+
string1: *const ::c_char,
1989+
string2: *const ::c_char,
1990+
locale: ::locale_t,
1991+
) -> ::c_int;
1992+
pub fn strncasecmp_l(
1993+
string1: *const ::c_char,
1994+
string2: *const ::c_char,
1995+
length: ::size_t,
1996+
locale: ::locale_t,
1997+
) -> ::c_int;
19871998
}
19881999

19892000
#[link(name = "bsd")]

0 commit comments

Comments
 (0)