Add ERRORS section.

Mention thread safety and async-cancel safety status [not].
Add standards compliancy references.
Note strtol() is preferred over atoi().

MFC after:	2 weeks
This commit is contained in:
asmodai 2001-09-26 20:22:44 +00:00
parent d2bcf9062d
commit 1036376e73

View File

@ -63,6 +63,20 @@ It is equivalent to:
.Bd -literal -offset indent
(int)strtol(nptr, (char **)NULL, 10);
.Ed
.Sh IMPLEMENTATION NOTES
The
.Fn atoi
function is not thread-safe and also not async-cancel safe.
.Pp
The
.Fn atof
function has been deprecated by
.Fn strtol
and should not be used in new code.
.Sh ERRORS
The
.Fn atoi
function does not detect errors.
.Sh SEE ALSO
.Xr atof 3 ,
.Xr atol 3 ,
@ -73,4 +87,7 @@ It is equivalent to:
The
.Fn atoi
function conforms to
.St -isoC .
.St -p1003.1-90 ,
.St -isoC ,
and
.St -isoC-99 .