mirror of https://github.com/mkerrisk/man-pages
qecvt.3: SYNOPSIS: Use 'restrict' in prototypes
glibc uses 'restrict' in qecvt(), qfcvt(). Let's use it here too. .../glibc$ grep_glibc_prototype qecvt stdlib/stdlib.h:890: extern char *qecvt (long double __value, int __ndigit, int *__restrict __decpt, int *__restrict __sign) __THROW __nonnull ((3, 4)) __wur; .../glibc$ grep_glibc_prototype qfcvt stdlib/stdlib.h:893: extern char *qfcvt (long double __value, int __ndigit, int *__restrict __decpt, int *__restrict __sign) __THROW __nonnull ((3, 4)) __wur; .../glibc$ Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
315a87ce92
commit
7ecee41323
|
@ -32,8 +32,12 @@ qecvt, qfcvt, qgcvt \- convert a floating-point number to a string
|
|||
.nf
|
||||
.B #include <stdlib.h>
|
||||
.PP
|
||||
.BI "char *qecvt(long double " number ", int " ndigits ", int *" decpt ", int *" sign );
|
||||
.BI "char *qfcvt(long double " number ", int " ndigits ", int *" decpt ",i int *" sign );
|
||||
.BI "char *qecvt(long double " number ", int " ndigits \
|
||||
", int *restrict " decpt ,
|
||||
.BI " int *restrict " sign );
|
||||
.BI "char *qfcvt(long double " number ", int " ndigits \
|
||||
", int *restrict " decpt ,
|
||||
.BI " int *restrict " sign );
|
||||
.BI "char *qgcvt(long double " number ", int " ndigit ", char *" buf );
|
||||
.fi
|
||||
.PP
|
||||
|
|
Loading…
Reference in New Issue