From: Alejandro Colomar Date: Wed, 24 Feb 2021 14:43:02 +0000 (+0100) Subject: ecvt_r.3: SYNOPSIS: Use 'restrict' in prototypes X-Git-Tag: man-pages-5.11~124 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f0eb582b9971ce14e06e7eb3ce38d304570fe0c3;p=thirdparty%2Fman-pages.git 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 Signed-off-by: Michael Kerrisk --- diff --git a/man3/ecvt_r.3 b/man3/ecvt_r.3 index f561977824..05689c8fc8 100644 --- a/man3/ecvt_r.3 +++ b/man3/ecvt_r.3 @@ -34,15 +34,17 @@ ecvt_r, fcvt_r, qecvt_r, qfcvt_r \- convert a floating-point number to a string .nf .B #include .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