]> git.saurik.com Git - apple/libc.git/blob - locale/FreeBSD/digittoint.3.patch
Libc-391.tar.gz
[apple/libc.git] / locale / FreeBSD / digittoint.3.patch
1 --- digittoint.3.orig Fri Mar 11 19:44:47 2005
2 +++ digittoint.3 Fri Mar 11 19:45:48 2005
3 @@ -36,7 +36,8 @@
4 .Dt DIGITTOINT 3
5 .Os
6 .Sh NAME
7 -.Nm digittoint
8 +.Nm digittoint ,
9 +.Nm digittoint_l
10 .Nd convert a numeric character to its integer value
11 .Sh LIBRARY
12 .Lb libc
13 @@ -44,12 +45,23 @@
14 .In ctype.h
15 .Ft int
16 .Fn digittoint "int c"
17 +.In xlocale.h
18 +.Ft int
19 +.Fn digittoint_l "int c" "locale_t loc"
20 .Sh DESCRIPTION
21 The
22 .Fn digittoint
23 function converts a numeric character to its corresponding integer value.
24 The character can be any decimal digit or hexadecimal digit.
25 With hexadecimal characters, the case of the values does not matter.
26 +.Pp
27 +While the
28 +.Fn digittoint
29 +function uses the current locale, the
30 +.Fn digittoint_l
31 +function may be passed a locale directly. See
32 +.Xr xlocale 3
33 +for more information.
34 .Sh RETURN VALUES
35 The
36 .Fn digittoint
37 @@ -60,4 +72,5 @@
38 .Sh SEE ALSO
39 .Xr ctype 3 ,
40 .Xr isdigit 3 ,
41 -.Xr isxdigit 3
42 +.Xr isxdigit 3 ,
43 +.Xr xlocale 3