]> git.saurik.com Git - apple/libc.git/blob - locale/FreeBSD/digittoint.3.patch
3bb6a14b80427f45d867c97784e2a71ea05ffac7
[apple/libc.git] / locale / FreeBSD / digittoint.3.patch
1 --- digittoint.3.orig 2009-11-09 15:05:25.000000000 -0800
2 +++ digittoint.3 2009-11-09 15:05:26.000000000 -0800
3 @@ -32,20 +32,38 @@
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 .Sh SYNOPSIS
14 .In ctype.h
15 .Ft int
16 -.Fn digittoint "int c"
17 +.Fo digittoint
18 +.Fa "int c"
19 +.Fc
20 +.In xlocale.h
21 +.In ctype.h
22 +.Ft int
23 +.Fo digittoint_l
24 +.Fa "int c"
25 +.Fa "locale_t loc"
26 +.Fc
27 .Sh DESCRIPTION
28 The
29 .Fn digittoint
30 function converts a numeric character to its corresponding integer value.
31 The character can be any decimal digit or hexadecimal digit.
32 With hexadecimal characters, the case of the values does not matter.
33 +.Pp
34 +While the
35 +.Fn digittoint
36 +function uses the current locale, the
37 +.Fn digittoint_l
38 +function may be passed a locale directly. See
39 +.Xr xlocale 3
40 +for more information.
41 .Sh RETURN VALUES
42 The
43 .Fn digittoint
44 @@ -56,4 +74,5 @@ the function will return 0.
45 .Sh SEE ALSO
46 .Xr ctype 3 ,
47 .Xr isdigit 3 ,
48 -.Xr isxdigit 3
49 +.Xr isxdigit 3 ,
50 +.Xr xlocale 3