1 --- strtoul.3.bsdnew 2009-11-13 14:11:51.000000000 -0800
2 +++ strtoul.3 2009-11-13 14:40:07.000000000 -0800
7 -.Nm strtoul , strtoull , strtoumax , strtouq
12 .Nd "convert a string to an"
13 .Vt "unsigned long" , "unsigned long long" , uintmax_t ,
15 @@ -46,25 +49,40 @@ integer
21 -.Fn strtoul "const char * restrict nptr" "char ** restrict endptr" "int base"
23 +.Fa "const char *restrict str"
24 +.Fa "char **restrict endptr"
27 .Ft "unsigned long long"
28 -.Fn strtoull "const char * restrict nptr" "char ** restrict endptr" "int base"
30 +.Fa "const char *restrict str"
31 +.Fa "char **restrict endptr"
36 -.Fn strtoumax "const char * restrict nptr" "char ** restrict endptr" "int base"
38 +.Fa "const char *restrict str"
39 +.Fa "char **restrict endptr"
46 -.Fn strtouq "const char *nptr" "char **endptr" "int base"
48 +.Fa "const char *str"
56 converts the string in
65 converts the string in
69 .Vt "unsigned long long"
74 converts the string in
80 @@ -88,7 +106,7 @@ The
83 converts the string in
89 @@ -142,11 +160,11 @@ stores the address of the first invalid
90 If there were no digits at all, however,
92 stores the original value of
103 @@ -201,10 +219,22 @@ no conversion could be performed
105 The given string was out of range; the value converted has been clamped.
108 +.Fd #include <stdlib.h>
109 +.Fd #include <limits.h>
112 +is necessary for the