Skip to content

Commit 216a428

Browse files
committed
Auto merge of #3069 - devnexen:haiku_strcmp_locale, r=JohnTitor
haiku posix layer adding locale flavor of strcasecmp api
2 parents ad3ce34 + db5a415 commit 216a428

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)