]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
SYNOPSIS: Added feature test macro requirements.
authorMichael Kerrisk <mtk.manpages@gmail.com>
Fri, 1 Aug 2008 05:26:20 +0000 (05:26 +0000)
committerMichael Kerrisk <mtk.manpages@gmail.com>
Fri, 1 Aug 2008 05:26:20 +0000 (05:26 +0000)
Added details to RETURN VALUE section.
Added (null) ERRORS section.
CONFORMING TO: Added POSIX.1-2001.

man3/frexp.3

index f419cd44d3fa501d948e0733e16745cb1bc42da8..34eceac48cca4f6a414849c4a870da08826d910c 100644 (file)
@@ -28,7 +28,7 @@
 .\" Modified 2002-07-27 by Walter Harms
 .\"    (walter.harms@informatik.uni-oldenburg.de)
 .\"
-.TH FREXP 3 2002-07-27 "" "Linux Programmer's Manual"
+.TH FREXP 3 2008-07-29 "" "Linux Programmer's Manual"
 .SH NAME
 frexp, frexpf, frexpl \- convert floating-point number to fractional
 and integral components
@@ -44,6 +44,18 @@ and integral components
 .fi
 .sp
 Link with \fI\-lm\fP.
+.sp
+.in -4n
+Feature Test Macro Requirements for glibc (see
+.BR feature_test_macros (7)):
+.in
+.sp
+.ad l
+.BR frexpf (),
+.BR frexpl ():
+_BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE\ >=\ 600 || _ISOC99_SOURCE; or
+.I cc\ -std=c99
+.ad b
 .SH DESCRIPTION
 The
 .BR frexp ()
@@ -56,16 +68,32 @@ function returns the normalized fraction.
 If the argument \fIx\fP is not zero,
 the normalized fraction is \fIx\fP times a power of two,
 and its absolute value is always in the range 1/2 (inclusive) to
-1 (exclusive).
+1 (exclusive), that is, [0.5,1).
+
 If \fIx\fP is zero, then the normalized fraction is
 zero and zero is stored in \fIexp\fP.
+
+If
+.I x
+is a NaN,
+a NaN is returned, and the value of
+.I *exp
+is unspecified.
+
+If
+.I x
+is positive infinity (negative infinity),
+positive infinity (negative infinity) is returned, and the value of
+.I *exp
+is unspecified.
+.SH ERRORS
+No errors occur.
 .SH "CONFORMING TO"
-SVr4, 4.3BSD, C89, C99.
-The
-.I float
-and
-.I "long double"
-variants are C99 requirements.
+C99, POSIX.1-2001.
+The variant returning
+.I double
+also conforms to
+SVr4, 4.3BSD, C89.
 .SH EXAMPLE
 .nf
 #include <math.h>