summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib
diff options
context:
space:
mode:
authorjaredy <jaredy@openbsd.org>2004-08-22 21:47:41 +0000
committerjaredy <jaredy@openbsd.org>2004-08-22 21:47:41 +0000
commit5d76900155e417ee68a99a1b74fe0d9540b1f665 (patch)
treedaa467406cdd51599136242ada0891dfe7e8fd02 /lib/libc/stdlib
parentCrank maxusers to 32; 16 is not enough to workaround the 68040-pmap problem (diff)
downloadwireguard-openbsd-5d76900155e417ee68a99a1b74fe0d9540b1f665.tar.xz
wireguard-openbsd-5d76900155e417ee68a99a1b74fe0d9540b1f665.zip
mention strtonum(3)
ok millert jmc pedro
Diffstat (limited to 'lib/libc/stdlib')
-rw-r--r--lib/libc/stdlib/atoi.39
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/libc/stdlib/atoi.3 b/lib/libc/stdlib/atoi.3
index 070344a8106..dee8b637a32 100644
--- a/lib/libc/stdlib/atoi.3
+++ b/lib/libc/stdlib/atoi.3
@@ -29,7 +29,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $OpenBSD: atoi.3,v 1.7 2003/06/02 20:18:37 millert Exp $
+.\" $OpenBSD: atoi.3,v 1.8 2004/08/22 21:47:41 jaredy Exp $
.\"
.Dd June 4, 1993
.Dt ATOI 3
@@ -61,6 +61,7 @@ It is equivalent to:
.Xr atol 3 ,
.Xr strtod 3 ,
.Xr strtol 3 ,
+.Xr strtonum 3 ,
.Xr strtoul 3
.Sh STANDARDS
The
@@ -78,4 +79,8 @@ Careful use of
.Xr strtol 3
and
.Xr strtoul 3
-can alleviate these problems.
+can alleviate these problems,
+but
+.Xr strtonum 3
+can be used to convert numbers from strings much more safely
+and easily.