[patch] scalb.3: fix prototypes for scalbf and scalbl

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The prototypes for scalbf and scalbl given in scalb.3 are incorrect.
If you have doubts, try compiling the following code:

  #include <math.h>
  double scalb(double x, double exp);
  float scalbf(float x, double exp);
  long double scalbl(long double x, double exp);

To gain confidence that the prototypes below are correct, compile the
following:

  #include <math.h>
  double scalb(double x, double exp);
  float scalbf(float x, float exp);
  long double scalbl(long double x, long double exp);

Or search for man pages from other sources, e.g.:

  http://www.unix.com/man-page/OpenSolaris/3m/scalbf/
  http://docs.oracle.com/cd/E26505_01/html/816-5172/scalb-3m.html

The patch below fixes these mistakes.

     Thanks,
       Mark


diff --git a/man3/scalb.3 b/man3/scalb.3
index 990c0bf..a5b2e5b 100644
--- a/man3/scalb.3
+++ b/man3/scalb.3
@@ -33,9 +33,9 @@ by integral power of radix (OBSOLETE)
 .sp
 .BI "double scalb(double " x ", double " exp );
 .br
-.BI "float scalbf(float " x ", double " exp );
+.BI "float scalbf(float " x ", float " exp );
 .br
-.BI "long double scalbl(long double " x ", double " exp );
+.BI "long double scalbl(long double " x ", long double " exp );
 .sp
 Link with \fI\-lm\fP.
 .sp
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux