mirror of https://github.com/mkerrisk/man-pages
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:
parent
fbe8945399
commit
315a87ce92
|
@ -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 ()
|
||||
|
|
Loading…
Reference in New Issue