mirror of https://github.com/mkerrisk/man-pages
ecvt_r.3: SYNOPSIS: Use 'restrict' in prototypes
Glibc uses 'restrict' for these functions ============================= ecvt_r stdlib/stdlib.h:902: int ecvt_r (double value, int ndigit, int *restrict decpt, int *restrict sign, char *restrict buf, size_t len) THROW nonnull ((3, 4, 5)); ============================= fcvt_r stdlib/stdlib.h:905: int fcvt_r (double value, int ndigit, int *restrict decpt, int *restrict sign, char *restrict buf, size_t len) THROW nonnull ((3, 4, 5)); ============================= qecvt_r stdlib/stdlib.h:909: int qecvt_r (long double value, int ndigit, int *restrict decpt, int *restrict sign, char *restrict buf, size_t len) THROW nonnull ((3, 4, 5)); ============================= qfcvt_r stdlib/stdlib.h:913: int qfcvt_r (long double value, int ndigit, int *restrict decpt, int *restrict sign, char *restrict buf, size_t len) THROW nonnull ((3, 4, 5)); Let's use it here too. Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
f6ce9b1dbe
commit
f0eb582b99
|
@ -34,15 +34,17 @@ ecvt_r, fcvt_r, qecvt_r, qfcvt_r \- convert a floating-point number to a string
|
|||
.nf
|
||||
.B #include <stdlib.h>
|
||||
.PP
|
||||
.BI "int ecvt_r(double " number ", int " ndigits ", int *" decpt ,
|
||||
.BI " int *" sign ", char *" buf ", size_t " len );
|
||||
.BI "int fcvt_r(double " number ", int " ndigits ", int *" decpt ,
|
||||
.BI " int *" sign ", char *" buf ", size_t " len );
|
||||
.BI "int ecvt_r(double " number ", int " ndigits ", int *restrict " decpt ,
|
||||
.BI " int *restrict " sign ", char *restrict " buf ", size_t " len );
|
||||
.BI "int fcvt_r(double " number ", int " ndigits ", int *restrict " decpt ,
|
||||
.BI " int *restrict " sign ", char *restrict " buf ", size_t " len );
|
||||
.PP
|
||||
.BI "int qecvt_r(long double " number ", int " ndigits ", int *" decpt ,
|
||||
.BI " int *" sign ", char *" buf ", size_t " len );
|
||||
.BI "int qfcvt_r(long double " number ", int " ndigits ", int *" decpt ,
|
||||
.BI " int *" sign ", char *" buf ", size_t " len );
|
||||
.BI "int qecvt_r(long double " number ", int " ndigits \
|
||||
", int *restrict " decpt ,
|
||||
.BI " int *restrict " sign ", char *restrict " buf ", size_t " len );
|
||||
.BI "int qfcvt_r(long double " number ", int " ndigits \
|
||||
", int *restrict " decpt ,
|
||||
.BI " int *restrict " sign ", char *restrict " buf ", size_t " len );
|
||||
.fi
|
||||
.PP
|
||||
.RS -4
|
||||
|
|
Loading…
Reference in New Issue