1 --- wcstol.3.orig 2009-11-09 15:05:25.000000000 -0800
2 +++ wcstol.3 2009-11-09 15:05:26.000000000 -0800
7 -.Nm wcstol , wcstoul ,
8 -.Nm wcstoll , wcstoull ,
9 -.Nm wcstoimax , wcstoumax
16 .Nd "convert a wide character string value to a"
19 -.Vt "unsigned long" ,
21 +.Vt "unsigned long" ,
22 .Vt "unsigned long long" ,
27 @@ -45,25 +48,50 @@ integer
31 -.Fn wcstol "const wchar_t * restrict nptr" "wchar_t ** restrict endptr" "int base"
33 -.Fn wcstoul "const wchar_t * restrict nptr" "wchar_t ** restrict endptr" "int base"
35 +.Fa "const wchar_t *restrict nptr"
36 +.Fa "wchar_t **restrict endptr"
40 -.Fn wcstoll "const wchar_t * restrict nptr" "wchar_t ** restrict endptr" "int base"
42 +.Fa "const wchar_t *restrict nptr"
43 +.Fa "wchar_t **restrict endptr"
48 +.Fa "const wchar_t *restrict nptr"
49 +.Fa "wchar_t **restrict endptr"
52 .Ft "unsigned long long"
53 -.Fn wcstoull "const wchar_t * restrict nptr" "wchar_t ** restrict endptr" "int base"
55 +.Fa "const wchar_t *restrict nptr"
56 +.Fa "wchar_t **restrict endptr"
62 -.Fn wcstoimax "const wchar_t * restrict nptr" "wchar_t ** restrict endptr" "int base"
64 +.Fa "const wchar_t *restrict nptr"
65 +.Fa "wchar_t **restrict endptr"
69 -.Fn wcstoumax "const wchar_t * restrict nptr" "wchar_t ** restrict endptr" "int base"
71 +.Fa "const wchar_t *restrict nptr"
72 +.Fa "wchar_t **restrict endptr"
85 functions are wide-character versions of the
86 @@ -71,23 +99,42 @@ functions are wide-character versions of
94 functions, respectively.
95 Refer to their manual pages (for example
99 +Extended locale versions of these functions are documented in
103 +for more information.
105 +.Fd #include <stddef.h>
106 +.Fd #include <inttypes.h>
110 +is necessary for the