]> git.saurik.com Git - apple/libc.git/blob - locale/FreeBSD/digittoint.3.patch
Libc-583.tar.gz
[apple/libc.git] / locale / FreeBSD / digittoint.3.patch
1 --- digittoint.3 2004-11-25 11:38:16.000000000 -0800
2 +++ digittoint.3.edit 2006-08-11 15:23:25.000000000 -0700
3 @@ -36,20 +36,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 @@ -60,4 +78,5 @@
45 .Sh SEE ALSO
46 .Xr ctype 3 ,
47 .Xr isdigit 3 ,
48 -.Xr isxdigit 3
49 +.Xr isxdigit 3 ,
50 +.Xr xlocale 3