summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib
diff options
context:
space:
mode:
authorasmodai <asmodai@FreeBSD.org>2001-09-09 21:09:53 +0000
committerasmodai <asmodai@FreeBSD.org>2001-09-09 21:09:53 +0000
commitfe6129599e38ab76926b2f7265b7c77a55675e2c (patch)
treeecf10b76c489cd48459da9ca6690e0ac7288a194 /lib/libc/stdlib
parent0c4612275a0acd8cd31bcf475fcb1ab710549ffa (diff)
downloadFreeBSD-src-fe6129599e38ab76926b2f7265b7c77a55675e2c.zip
FreeBSD-src-fe6129599e38ab76926b2f7265b7c77a55675e2c.tar.gz
Add more standards which we conform to.
Note our implementation is not thread nor async-cancel safe. Explicitely note atof() does not check nor report errors. Note that strtod() should be used instead.
Diffstat (limited to 'lib/libc/stdlib')
-rw-r--r--lib/libc/stdlib/atof.319
1 files changed, 18 insertions, 1 deletions
diff --git a/lib/libc/stdlib/atof.3 b/lib/libc/stdlib/atof.3
index 4a4c3e3..d9ae36e 100644
--- a/lib/libc/stdlib/atof.3
+++ b/lib/libc/stdlib/atof.3
@@ -67,6 +67,20 @@ strtod(nptr, (char **)NULL);
The decimal point
character is defined in the program's locale (category
.Dv LC_NUMERIC ) .
+.Pp
+The
+.Fn atof
+function does not detect errors.
+.Sh IMPLEMENTATION NOTES
+The
+.Fn atof
+function is not thread-safe and also not async-cancel-safe.
+.Pp
+The
+.Fn atof
+function has been deprecated by
+.Fn strtod
+and should not be used in new code.
.Sh SEE ALSO
.Xr atoi 3 ,
.Xr atol 3 ,
@@ -77,4 +91,7 @@ character is defined in the program's locale (category
The
.Fn atof
function conforms to
-.St -isoC .
+.St -isoC ,
+.St -p1003.1 ,
+and
+.St -isoC-99 .
OpenPOWER on IntegriCloud