summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjmc <>2010-04-07 18:32:53 +0000
committerjmc <>2010-04-07 18:32:53 +0000
commit3368464972faf5ed33853fda5c0505f9af93fbec (patch)
treed81cfccdf1bc2281a178640cd2998fd3850b73eb
parentda6f36e6b9f29c2a42d837dc544eba52444c508d (diff)
downloadopenbsd-3368464972faf5ed33853fda5c0505f9af93fbec.tar.gz
openbsd-3368464972faf5ed33853fda5c0505f9af93fbec.tar.bz2
openbsd-3368464972faf5ed33853fda5c0505f9af93fbec.zip
- nuke some unneeded Pp; from kristaps
- small tweak while here
-rw-r--r--src/lib/libc/stdlib/strtoul.39
1 files changed, 3 insertions, 6 deletions
diff --git a/src/lib/libc/stdlib/strtoul.3 b/src/lib/libc/stdlib/strtoul.3
index a7c6bbfa18..5e86772ef0 100644
--- a/src/lib/libc/stdlib/strtoul.3
+++ b/src/lib/libc/stdlib/strtoul.3
@@ -29,9 +29,9 @@
29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30.\" SUCH DAMAGE. 30.\" SUCH DAMAGE.
31.\" 31.\"
32.\" $OpenBSD: strtoul.3,v 1.19 2007/11/13 18:30:04 tobias Exp $ 32.\" $OpenBSD: strtoul.3,v 1.20 2010/04/07 18:32:53 jmc Exp $
33.\" 33.\"
34.Dd $Mdocdate: November 13 2007 $ 34.Dd $Mdocdate: April 7 2010 $
35.Dt STRTOUL 3 35.Dt STRTOUL 3
36.Os 36.Os
37.Sh NAME 37.Sh NAME
@@ -45,14 +45,11 @@
45.Fd #include <stdlib.h> 45.Fd #include <stdlib.h>
46.Ft unsigned long 46.Ft unsigned long
47.Fn strtoul "const char *nptr" "char **endptr" "int base" 47.Fn strtoul "const char *nptr" "char **endptr" "int base"
48.Pp
49.Ft unsigned long long 48.Ft unsigned long long
50.Fn strtoull "const char *nptr" "char **endptr" "int base" 49.Fn strtoull "const char *nptr" "char **endptr" "int base"
51.Pp
52.Fd #include <inttypes.h> 50.Fd #include <inttypes.h>
53.Ft uintmax_t 51.Ft uintmax_t
54.Fn strtoumax "const char *nptr" "char **endptr" "int base" 52.Fn strtoumax "const char *nptr" "char **endptr" "int base"
55.Pp
56.Fd #include <sys/types.h> 53.Fd #include <sys/types.h>
57.Fd #include <limits.h> 54.Fd #include <limits.h>
58.Fd #include <stdlib.h> 55.Fd #include <stdlib.h>
@@ -179,7 +176,7 @@ If no conversion could be performed, 0 is returned;
179the global variable 176the global variable
180.Va errno 177.Va errno
181is also set to 178is also set to
182.Er EINVAL, 179.Er EINVAL ,
183though this is not portable across all platforms. 180though this is not portable across all platforms.
184.Pp 181.Pp
185There is no way to determine if 182There is no way to determine if