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>
This commit is contained in:
Alejandro Colomar 2021-02-24 15:43:06 +01:00 committed by Michael Kerrisk
parent ef5781cf66
commit e7bb37ab1b
1 changed files with 2 additions and 1 deletions

View File

@ -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