Deleted Added
full compact
strtonum.3 (156707) strtonum.3 (156708)
1.\" Copyright (c) 2004 Ted Unangst
2.\"
3.\" Permission to use, copy, modify, and distribute this software for any
4.\" purpose with or without fee is hereby granted, provided that the above
5.\" copyright notice and this permission notice appear in all copies.
6.\"
7.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
8.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
9.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
10.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
11.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
12.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
13.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
14.\"
15.\" $OpenBSD: strtonum.3,v 1.12 2005/10/26 11:37:58 jmc Exp $
1.\" Copyright (c) 2004 Ted Unangst
2.\"
3.\" Permission to use, copy, modify, and distribute this software for any
4.\" purpose with or without fee is hereby granted, provided that the above
5.\" copyright notice and this permission notice appear in all copies.
6.\"
7.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
8.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
9.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
10.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
11.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
12.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
13.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
14.\"
15.\" $OpenBSD: strtonum.3,v 1.12 2005/10/26 11:37:58 jmc Exp $
16.\" $FreeBSD: head/lib/libc/stdlib/strtonum.3 156707 2006-03-14 16:57:30Z andre $
16.\" $FreeBSD: head/lib/libc/stdlib/strtonum.3 156708 2006-03-14 17:01:21Z andre $
17.\"
18.Dd April 29, 2004
19.Dt STRTONUM 3
20.Os
21.Sh NAME
22.Nm strtonum
23.Nd "reliably convert string value to an integer"
24.Sh SYNOPSIS

--- 109 unchanged lines hidden (view full) ---

134.Xr atol 3 ,
135.Xr atoll 3 ,
136.Xr sscanf 3 ,
137.Xr strtod 3 ,
138.Xr strtol 3 ,
139.Xr strtoul 3
140.Sh STANDARDS
141.Fn strtonum
17.\"
18.Dd April 29, 2004
19.Dt STRTONUM 3
20.Os
21.Sh NAME
22.Nm strtonum
23.Nd "reliably convert string value to an integer"
24.Sh SYNOPSIS

--- 109 unchanged lines hidden (view full) ---

134.Xr atol 3 ,
135.Xr atoll 3 ,
136.Xr sscanf 3 ,
137.Xr strtod 3 ,
138.Xr strtol 3 ,
139.Xr strtoul 3
140.Sh STANDARDS
141.Fn strtonum
142is an
143.Ox
144extension.
142is an BSD extension.
145The existing alternatives, such as
146.Xr atoi 3
147and
148.Xr strtol 3 ,
149are either impossible or difficult to use safely.
150.Sh HISTORY
151The
152.Fn strtonum
143The existing alternatives, such as
144.Xr atoi 3
145and
146.Xr strtol 3 ,
147are either impossible or difficult to use safely.
148.Sh HISTORY
149The
150.Fn strtonum
153function first appeared in
154.Ox 3.6 .
151function first appeared in OpenBSD 3.6 .