diff options
author | jmc <> | 2005-02-07 08:54:59 +0000 |
---|---|---|
committer | jmc <> | 2005-02-07 08:54:59 +0000 |
commit | 999e7f2959eb9423370b4c964ed4b37c6da8db93 (patch) | |
tree | 1a7a48458a541c4eb405649825b0a659e5b027f0 | |
parent | 44248d3f5723370a5a0db73e91e775427c9e9ebc (diff) | |
download | openbsd-999e7f2959eb9423370b4c964ed4b37c6da8db93.tar.gz openbsd-999e7f2959eb9423370b4c964ed4b37c6da8db93.tar.bz2 openbsd-999e7f2959eb9423370b4c964ed4b37c6da8db93.zip |
tidy up ERRORS and STANDARDS;
-rw-r--r-- | src/lib/libc/stdlib/strtonum.3 | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/src/lib/libc/stdlib/strtonum.3 b/src/lib/libc/stdlib/strtonum.3 index f6e7b8222c..08c58b256e 100644 --- a/src/lib/libc/stdlib/strtonum.3 +++ b/src/lib/libc/stdlib/strtonum.3 | |||
@@ -1,4 +1,4 @@ | |||
1 | .\" $OpenBSD: strtonum.3,v 1.8 2004/11/22 00:58:39 jmc Exp $ | 1 | .\" $OpenBSD: strtonum.3,v 1.9 2005/02/07 08:54:59 jmc Exp $ |
2 | .\" | 2 | .\" |
3 | .\" Copyright (c) 2004 Ted Unangst | 3 | .\" Copyright (c) 2004 Ted Unangst |
4 | .\" | 4 | .\" |
@@ -107,13 +107,16 @@ was larger than | |||
107 | .Ar maxval . | 107 | .Ar maxval . |
108 | .El | 108 | .El |
109 | .Pp | 109 | .Pp |
110 | If an error occurs, errstr will be set to one of the following strings. | 110 | If an error occurs, |
111 | .Bl -tag -width "too large" | 111 | .Fa errstr |
112 | .It "too large" | 112 | will be set to one of the following strings: |
113 | .Pp | ||
114 | .Bl -tag -width "too largeXX" -compact | ||
115 | .It too large | ||
113 | The result was larger than the provided maximum value. | 116 | The result was larger than the provided maximum value. |
114 | .It "too small" | 117 | .It too small |
115 | The result was smaller than the provided minimum value. | 118 | The result was smaller than the provided minimum value. |
116 | .It "invalid" | 119 | .It invalid |
117 | The string did not consist solely of digit characters. | 120 | The string did not consist solely of digit characters. |
118 | .El | 121 | .El |
119 | .Sh SEE ALSO | 122 | .Sh SEE ALSO |
@@ -133,7 +136,7 @@ extension. | |||
133 | The existing alternatives, such as | 136 | The existing alternatives, such as |
134 | .Xr atoi 3 | 137 | .Xr atoi 3 |
135 | and | 138 | and |
136 | .Xr strtol 3 | 139 | .Xr strtol 3 , |
137 | are either impossible or difficult to use safely. | 140 | are either impossible or difficult to use safely. |
138 | .Sh HISTORY | 141 | .Sh HISTORY |
139 | The | 142 | The |