puts.3: SYNOPSIS: Use 'restrict' in prototypes

Both POSIX and glibc use 'restrict' in fputs().
Let's use it here too.

.../glibc$ grep_glibc_prototype fputs
libio/stdio.h:631:
extern int fputs (const char *__restrict __s, FILE *__restrict __stream);
.../glibc$

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-03-08 19:53:23 +01:00 committed by Michael Kerrisk
parent fbe8945399
commit 315a87ce92
1 changed files with 2 additions and 2 deletions

View File

@ -34,8 +34,8 @@ fputc, fputs, putc, putchar, puts \- output of characters and strings
.BI "int putc(int " c ", FILE *" stream );
.BI "int putchar(int " c );
.PP
.BI "int fputs(const char *" "s" ", FILE *" "stream" );
.BI "int puts(const char *" "s" );
.BI "int fputs(const char *restrict " s ", FILE *restrict " stream );
.BI "int puts(const char *" s );
.fi
.SH DESCRIPTION
.BR fputc ()