mirror of https://github.com/mkerrisk/man-pages
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:
parent
f0eb582b99
commit
017103fa19
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue