From 54b0fbfb442ea67f8d08241ff337e631aba3147a Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Fri, 1 Aug 2008 05:26:02 +0000 Subject: [PATCH] SYNOPSIS: Fixed feature test macro requirements. Added RETURN VALUE section. Added (null) ERRORS section. Updated CONFORMING TO. --- man3/cbrt.3 | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/man3/cbrt.3 b/man3/cbrt.3 index 517da59eb..d8f4cd6f9 100644 --- a/man3/cbrt.3 +++ b/man3/cbrt.3 @@ -25,7 +25,7 @@ .\" Modified 2002-07-27 Walter Harms .\" (walter.harms@informatik.uni-oldenburg.de) .\" -.TH CBRT 3 2007-07-26 "GNU" "Linux Programmer's Manual" +.TH CBRT 3 2008-07-29 "GNU" "Linux Programmer's Manual" .SH NAME cbrt, cbrtf, cbrtl \- cube root function .SH SYNOPSIS @@ -47,10 +47,13 @@ Feature Test Macro Requirements for glibc (see .in .sp .ad l -.BR cbrt (), +.BR cbrt (): +_BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE\ >=\ 500 || _ISOC99_SOURCE; or +.I cc\ -std=c99 +.br .BR cbrtf (), .BR cbrtl (): -_BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE\ >=\ 500 || _ISOC99_SOURCE; or +_BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE\ >=\ 600 || _ISOC99_SOURCE; or .I cc\ -std=c99 .ad b .SH DESCRIPTION @@ -59,8 +62,19 @@ The function returns the (real) cube root of \fIx\fP. This function cannot fail; every representable real value has a representable real cube root. +.SH RETURN VALUE +These functions return the cube root of +.IR x . + +If +.I x +is +0, -0, positive infinity, negative infinity, or NaN, +.I x +is returned. +.SH ERRORS +No errors occur. .SH "CONFORMING TO" -C99. +C99, POSIX.1-2001. .\" .BR cbrt () .\" was a GNU extension. It is now a C99 requirement. .SH "SEE ALSO"