From 5796457847338c884c1863d78addddafce4fc02f Mon Sep 17 00:00:00 2001 From: jmc <> Date: Sun, 1 Jun 2003 19:27:27 +0000 Subject: - section reorder - merge COMPATIBILITY - kill whitespace at EOL --- src/lib/libc/stdlib/atoi.3 | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'src/lib/libc/stdlib/atoi.3') diff --git a/src/lib/libc/stdlib/atoi.3 b/src/lib/libc/stdlib/atoi.3 index 69b94be70c..6ba304cf46 100644 --- a/src/lib/libc/stdlib/atoi.3 +++ b/src/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. -- cgit v1.2.3-55-g6feb