diff options
author | Jason McIntyre <jmc@cvs.openbsd.org> | 2003-06-01 19:27:28 +0000 |
---|---|---|
committer | Jason McIntyre <jmc@cvs.openbsd.org> | 2003-06-01 19:27:28 +0000 |
commit | 593a51980a92afc583faae94d80a860f19847b82 (patch) | |
tree | 619c5eb565454edb266020e31d8fc37642ba33f7 /lib/libc/stdlib/atoi.3 | |
parent | c015588fce23b571e5b96aa9c02d71c7d84ec3dc (diff) |
- section reorder
- merge COMPATIBILITY
- kill whitespace at EOL
Diffstat (limited to 'lib/libc/stdlib/atoi.3')
-rw-r--r-- | lib/libc/stdlib/atoi.3 | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/lib/libc/stdlib/atoi.3 b/lib/libc/stdlib/atoi.3 index 69b94be70c2..6ba304cf461 100644 --- a/lib/libc/stdlib/atoi.3 +++ b/lib/libc/stdlib/atoi.3 @@ -33,7 +33,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.\" $OpenBSD: atoi.3,v 1.5 2000/04/20 13:50:01 aaron Exp $ +.\" $OpenBSD: atoi.3,v 1.6 2003/06/01 19:27:27 jmc Exp $ .\" .Dd June 4, 1993 .Dt ATOI 3 @@ -60,18 +60,6 @@ It is equivalent to: .Bd -literal -offset indent (int)strtol(nptr, (char **)NULL, 10); .Ed -.Sh CAVEATS -.Nm -does no overflow checking, handles unsigned numbers poorly, -and handles strings containing trailing extra characters -(like -.Dq "123abc" Ns ) -poorly. -Careful use of -.Xr strtol 3 -and -.Xr strtoul 3 -can alleviate these problems. .Sh SEE ALSO .Xr atof 3 , .Xr atol 3 , @@ -83,3 +71,15 @@ The .Fn atoi function conforms to .St -ansiC . +.Sh CAVEATS +.Nm +does no overflow checking, handles unsigned numbers poorly, +and handles strings containing trailing extra characters +(like +.Dq "123abc" ) +poorly. +Careful use of +.Xr strtol 3 +and +.Xr strtoul 3 +can alleviate these problems. |