aboutsummaryrefslogtreecommitdiffstats
path: root/man3
diff options
context:
space:
mode:
authorAlejandro Colomar <alx.manpages@gmail.com>2021-02-24 15:43:06 +0100
committerMichael Kerrisk <mtk.manpages@gmail.com>2021-03-03 23:12:22 +0100
commite7bb37ab1bfabc478129b62ace903cf7b882eee1 (patch)
tree33631f48a083d3737348cc55e51c82868a096528 /man3
parentef5781cf669a1f9aafd073d7ed6025fd7f643c9f (diff)
downloadman-pages-e7bb37ab1bfabc478129b62ace903cf7b882eee1.tar.gz
fgetws.3: SYNOPSIS: Use 'restrict' in prototypes
Both POSIX and glibc use 'restrict' for fgetws(). Let's use it here too. glibc: wcsmbs/wchar.h:758: wchar_t *fgetws (wchar_t *restrict ws, int n, FILE *restrict stream); Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Diffstat (limited to 'man3')
-rw-r--r--man3/fgetws.33
1 files changed, 2 insertions, 1 deletions
diff --git a/man3/fgetws.3 b/man3/fgetws.3
index 4ce0fe79b6..6525079379 100644
--- a/man3/fgetws.3
+++ b/man3/fgetws.3
@@ -22,7 +22,8 @@ fgetws \- read a wide-character string from a FILE stream
.nf
.B #include <wchar.h>
.PP
-.BI "wchar_t *fgetws(wchar_t *" ws ", int " n ", FILE *" stream );
+.BI "wchar_t *fgetws(wchar_t *restrict " ws ", int " n \
+", FILE *restrict " stream );
.fi
.SH DESCRIPTION
The