aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlejandro Colomar <alx.manpages@gmail.com>2021-03-08 19:53:24 +0100
committerMichael Kerrisk <mtk.manpages@gmail.com>2021-03-14 21:29:13 +0100
commit7ecee413233549583526f359c0e047965ff8ef75 (patch)
treeba099d06c6b03636acf58af55022e8d3b09854cc
parent315a87ce928dc9b20f1fdc4fc4faaaa2b854f1a2 (diff)
downloadman-pages-7ecee413233549583526f359c0e047965ff8ef75.tar.gz
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>
-rw-r--r--man3/qecvt.38
1 files changed, 6 insertions, 2 deletions
diff --git a/man3/qecvt.3 b/man3/qecvt.3
index e38922dbf1..f904bad54e 100644
--- a/man3/qecvt.3
+++ b/man3/qecvt.3
@@ -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