1 --- strtoul.3 2003-05-20 15:23:25.000000000 -0700
2 +++ strtoul.3.edit 2006-08-09 13:43:16.000000000 -0700
7 -.Nm strtoul , strtoull , strtoumax , strtouq
12 .Nd "convert a string to an"
13 .Vt "unsigned long" , "unsigned long long" , uintmax_t ,
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
83 converts the string in
90 If there were no digits at all, however,
92 stores the original value of
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