Deleted Added
sdiff udiff text old ( 156708 ) new ( 156739 )
full compact
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 156739 2006-03-15 14:05:41Z 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
142is a
143.Bx extension.
144The existing alternatives, such as
145.Xr atoi 3
146and
147.Xr strtol 3 ,
148are either impossible or difficult to use safely.
149.Sh HISTORY
150The
151.Fn strtonum
152function first appeared in
153.Ox 3.6 .