ecvt.3: SYNOPSIS: Use 'restrict' in prototypes

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@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Alejandro Colomar 2021-02-24 15:43:03 +01:00 committed by Michael Kerrisk
parent f0eb582b99
commit 017103fa19
1 changed files with 4 additions and 2 deletions

View File

@ -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