From: Alejandro Colomar Date: Sat, 13 Mar 2021 15:06:53 +0000 (+0100) Subject: wprintf.3: SYNOPSIS: Use 'restrict' in prototypes X-Git-Tag: man-pages-5.11~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=71458d681bb4ebd5f9ec15ddea8b856310bc056b;p=thirdparty%2Fman-pages.git wprintf.3: SYNOPSIS: Use 'restrict' in prototypes POSIX uses 'restrict' in *wprintf() (see [v]fwprintf(3p)). Let's use it here too. Signed-off-by: Alejandro Colomar Signed-off-by: Michael Kerrisk --- diff --git a/man3/wprintf.3 b/man3/wprintf.3 index 676fe1ed73..76acfbb344 100644 --- a/man3/wprintf.3 +++ b/man3/wprintf.3 @@ -22,15 +22,17 @@ wide-character output conversion .B #include .B #include .PP -.BI "int wprintf(const wchar_t *" format ", ...);" -.BI "int fwprintf(FILE *" stream ", const wchar_t *" format ", ...);" -.BI "int swprintf(wchar_t *" wcs ", size_t " maxlen , -.BI " const wchar_t *" format ", ...);" +.BI "int wprintf(const wchar_t *restrict " format ", ...);" +.BI "int fwprintf(FILE *restrict " stream , +.BI " const wchar_t *restrict " format ", ...);" +.BI "int swprintf(wchar_t *restrict " wcs ", size_t " maxlen , +.BI " const wchar_t *restrict " format ", ...);" .PP -.BI "int vwprintf(const wchar_t *" format ", va_list " args ); -.BI "int vfwprintf(FILE *" stream ", const wchar_t *" format ", va_list " args ); -.BI "int vswprintf(wchar_t *" wcs ", size_t " maxlen , -.BI " const wchar_t *" format ", va_list " args ); +.BI "int vwprintf(const wchar_t *restrict " format ", va_list " args ); +.BI "int vfwprintf(FILE *restrict " stream , +.BI " const wchar_t *restrict " format ", va_list " args ); +.BI "int vswprintf(wchar_t *restrict " wcs ", size_t " maxlen , +.BI " const wchar_t *restrict " format ", va_list " args ); .fi .PP .RS -4