summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorchris <chris@FreeBSD.org>2000-01-19 04:58:39 +0000
committerchris <chris@FreeBSD.org>2000-01-19 04:58:39 +0000
commit0d97bae686443aded0a9e9836b7349f67beab0f4 (patch)
tree2b161fb9b7b26794b3087621858ea6b73d896958 /lib
parent87094c8006032a0f6adcc9c0009c9923868e27a4 (diff)
downloadFreeBSD-src-0d97bae686443aded0a9e9836b7349f67beab0f4.zip
FreeBSD-src-0d97bae686443aded0a9e9836b7349f67beab0f4.tar.gz
Document isnanf() for checking if a float is NaN (``Not-a-Number'') and
create a link from isnanf.3 to isinf.3. PR: 13878
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/gen/Makefile.inc2
-rw-r--r--lib/libc/gen/isinf.311
2 files changed, 9 insertions, 4 deletions
diff --git a/lib/libc/gen/Makefile.inc b/lib/libc/gen/Makefile.inc
index c069293..2722265 100644
--- a/lib/libc/gen/Makefile.inc
+++ b/lib/libc/gen/Makefile.inc
@@ -90,7 +90,7 @@ MLINKS+=getvfsent.3 endvfsent.3 getvfsent.3 getvfsbytype.3 \
getvfsent.3 setvfsent.3 getvfsent.3 vfsisloadable.3 \
getvfsent.3 vfsload.3
MLINKS+=glob.3 globfree.3
-MLINKS+=isinf.3 isnan.3
+MLINKS+=isinf.3 isnan.3 isinf.3 isnanf.3
MLINKS+=popen.3 pclose.3
MLINKS+=psignal.3 sys_siglist.3 psignal.3 sys_signame.3
MLINKS+=psignal.3 strsignal.3 psignal.3 sys_siglist.3 psignal.3 sys_signame.3
diff --git a/lib/libc/gen/isinf.3 b/lib/libc/gen/isinf.3
index 592bd04..a60bc4e 100644
--- a/lib/libc/gen/isinf.3
+++ b/lib/libc/gen/isinf.3
@@ -37,13 +37,16 @@
.Os
.Sh NAME
.Nm isinf ,
-.Nm isnan
+.Nm isnan ,
+.Nm isnanf
.Nd test for infinity or not-a-number
.Sh SYNOPSIS
.Ft int
.Fn isinf double
.Ft int
.Fn isnan double
+.Ft int
+.Fn isnanf float
.Sh DESCRIPTION
The
.Fn isinf
@@ -54,8 +57,10 @@ otherwise 0.
.Pp
The
.Fn isnan
-function
-returns 1 if the number is
+and
+.Fn isnanf
+functions
+return 1 if the double or float (respectively) is
.Dq not-a-number ,
otherwise 0.
.Sh SEE ALSO
OpenPOWER on IntegriCloud