summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjaredy <>2004-08-22 21:47:41 +0000
committerjaredy <>2004-08-22 21:47:41 +0000
commit633fc554b41a52a44458a5f8967f01dc3ea386de (patch)
tree73c53f87ac40219f2f2bc0df95344bb7bc12cb67
parente4aafbee1f08b007f2c676ef69c5164cce52f541 (diff)
downloadopenbsd-633fc554b41a52a44458a5f8967f01dc3ea386de.tar.gz
openbsd-633fc554b41a52a44458a5f8967f01dc3ea386de.tar.bz2
openbsd-633fc554b41a52a44458a5f8967f01dc3ea386de.zip
mention strtonum(3)
ok millert jmc pedro
-rw-r--r--src/lib/libc/stdlib/atoi.39
1 files changed, 7 insertions, 2 deletions
diff --git a/src/lib/libc/stdlib/atoi.3 b/src/lib/libc/stdlib/atoi.3
index 070344a810..dee8b637a3 100644
--- a/src/lib/libc/stdlib/atoi.3
+++ b/src/lib/libc/stdlib/atoi.3
@@ -29,7 +29,7 @@
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: atoi.3,v 1.7 2003/06/02 20:18:37 millert Exp $ 32.\" $OpenBSD: atoi.3,v 1.8 2004/08/22 21:47:41 jaredy Exp $
33.\" 33.\"
34.Dd June 4, 1993 34.Dd June 4, 1993
35.Dt ATOI 3 35.Dt ATOI 3
@@ -61,6 +61,7 @@ It is equivalent to:
61.Xr atol 3 , 61.Xr atol 3 ,
62.Xr strtod 3 , 62.Xr strtod 3 ,
63.Xr strtol 3 , 63.Xr strtol 3 ,
64.Xr strtonum 3 ,
64.Xr strtoul 3 65.Xr strtoul 3
65.Sh STANDARDS 66.Sh STANDARDS
66The 67The
@@ -78,4 +79,8 @@ Careful use of
78.Xr strtol 3 79.Xr strtol 3
79and 80and
80.Xr strtoul 3 81.Xr strtoul 3
81can alleviate these problems. 82can alleviate these problems,
83but
84.Xr strtonum 3
85can be used to convert numbers from strings much more safely
86and easily.