]> git.saurik.com Git - apple/libc.git/blame - stdlib/FreeBSD/atol.3.patch
Libc-391.4.1.tar.gz
[apple/libc.git] / stdlib / FreeBSD / atol.3.patch
CommitLineData
3d9156a7
A
1--- atol.3.orig Fri Mar 11 10:15:17 2005
2+++ atol.3 Fri Mar 11 10:53:10 2005
3@@ -40,7 +40,8 @@
4 .Dt ATOL 3
5 .Os
6 .Sh NAME
7-.Nm atol , atoll
8+.Nm atol , atoll ,
9+.Nm atol_l , atoll_l
10 .Nd convert
11 .Tn ASCII
12 string to
13@@ -56,6 +57,11 @@
14 .Fn atol "const char *nptr"
15 .Ft "long long"
16 .Fn atoll "const char *nptr"
17+.In xlocale.h
18+.Ft long
19+.Fn atol_l "const char *nptr" "locale_t loc"
20+.Ft "long long"
21+.Fn atoll_l "const char *nptr" "locale_t loc"
22 .Sh DESCRIPTION
23 The
24 .Fn atol
25@@ -82,6 +88,18 @@
26 It is equivalent to:
27 .Pp
28 .Dl "strtoll(nptr, (char **)NULL, 10);"
29+.Pp
30+While the
31+.Fn atol
32+and
33+.Fn atoll
34+functions use the current locale, the
35+.Fn atol_l
36+and
37+.Fn atoll_l
38+functions may be passed locales directly. See
39+.Xr xlocale 3
40+for more information.
41 .Sh ERRORS
42 The functions
43 .Fn atol
44@@ -96,7 +114,8 @@
45 .Xr atoi 3 ,
46 .Xr strtod 3 ,
47 .Xr strtol 3 ,
48-.Xr strtoul 3
49+.Xr strtoul 3 ,
50+.Xr xlocale 3
51 .Sh STANDARDS
52 The
53 .Fn atol