]> git.saurik.com Git - apple/libc.git/blob - string/FreeBSD/strcasecmp.3.patch
Libc-391.5.22.tar.gz
[apple/libc.git] / string / FreeBSD / strcasecmp.3.patch
1 --- strcasecmp.3.orig Fri Mar 11 08:37:27 2005
2 +++ strcasecmp.3 Fri Mar 11 08:38:54 2005
3 @@ -39,7 +39,9 @@
4 .Os
5 .Sh NAME
6 .Nm strcasecmp ,
7 -.Nm strncasecmp
8 +.Nm strncasecmp ,
9 +.Nm strcasecmp_l ,
10 +.Nm strncasecmp_l
11 .Nd compare strings, ignoring case
12 .Sh LIBRARY
13 .Lb libc
14 @@ -49,6 +51,11 @@
15 .Fn strcasecmp "const char *s1" "const char *s2"
16 .Ft int
17 .Fn strncasecmp "const char *s1" "const char *s2" "size_t len"
18 +.In xlocale.h
19 +.Ft int
20 +.Fn strcasecmp_l "const char *s1" "const char *s2" "locale_t loc"
21 +.Ft int
22 +.Fn strncasecmp_l "const char *s1" "const char *s2" "size_t len" "locale_t loc"
23 .Sh DESCRIPTION
24 The
25 .Fn strcasecmp
26 @@ -65,6 +72,18 @@
27 compares at most
28 .Fa len
29 characters.
30 +.Pp
31 +While the
32 +.Fn strcasecmp
33 +and
34 +.Fn strncasecmp
35 +functions use the current locale, the
36 +.Fn strcasecmp_l
37 +and
38 +.Fn strncasecmp_l
39 +functions may be passed locales directly. See
40 +.Xr xlocale 3
41 +for more information.
42 .Sh RETURN VALUES
43 The
44 .Fn strcasecmp
45 @@ -87,7 +106,8 @@
46 .Xr strcmp 3 ,
47 .Xr strcoll 3 ,
48 .Xr strxfrm 3 ,
49 -.Xr tolower 3
50 +.Xr tolower 3 ,
51 +.Xr xlocale 3
52 .Sh HISTORY
53 The
54 .Fn strcasecmp