[PATCH 12/20] ecvt.3: SYNOPSIS: Use 'restrict' in prototypes

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

 



POSIX.1-2001 and glibc use 'restrict' for these functions.
Let's use it here too.

glibc:
=============================  ecvt
stdlib/stdlib.h:872:
char *ecvt (double value, int ndigit, int *restrict decpt,
                   int *restrict sign) THROW nonnull ((3, 4)) wur;
=============================  fcvt
stdlib/stdlib.h:878:
char *fcvt (double value, int ndigit, int *restrict decpt,
                   int *restrict sign) THROW nonnull ((3, 4)) wur;

Signed-off-by: Alejandro Colomar <alx.manpages@xxxxxxxxx>
---
 man3/ecvt.3 | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/man3/ecvt.3 b/man3/ecvt.3
index ec4a4b6fc..8d53b1287 100644
--- a/man3/ecvt.3
+++ b/man3/ecvt.3
@@ -36,8 +36,10 @@ ecvt, fcvt \- convert a floating-point number to a string
 .nf
 .B #include <stdlib.h>
 .PP
-.BI "char *ecvt(double " number ", int " ndigits ", int *" decpt ", int *" sign );
-.BI "char *fcvt(double " number ", int " ndigits ", int *" decpt ", int *" sign );
+.BI "char *ecvt(double " number ", int " ndigits ", int *restrict " decpt ,
+.BI "           int *restrict " sign );
+.BI "char *fcvt(double " number ", int " ndigits ", int *restrict " decpt ,
+.BI "           int *restrict " sign );
 .fi
 .PP
 .RS -4
-- 
2.30.1.721.g45526154a5




[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