]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
fputws.3: SYNOPSIS: Use 'restrict' in prototypes
authorAlejandro Colomar <alx.manpages@gmail.com>
Wed, 24 Feb 2021 14:43:09 +0000 (15:43 +0100)
committerMichael Kerrisk <mtk.manpages@gmail.com>
Wed, 3 Mar 2021 22:12:22 +0000 (23:12 +0100)
Both POSIX and glibc use 'restrict' in fputws().
Let's use it here too.

glibc:
=============================  fputws
wcsmbs/wchar.h:765:
int fputws (const wchar_t *restrict ws,
                   FILE *restrict stream);

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
man3/fputws.3

index 604c9603892a7ad3e45917a089275e22595f5c55..7269353f7d6af98db47bf71cd0440a6067125f90 100644 (file)
@@ -20,7 +20,7 @@ fputws \- write a wide-character string to a FILE stream
 .nf
 .B #include <wchar.h>
 .PP
-.BI "int fputws(const wchar_t *" ws ", FILE *" stream );
+.BI "int fputws(const wchar_t *restrict " ws ", FILE *restrict " stream );
 .fi
 .SH DESCRIPTION
 The