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

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

glibc:
libio/stdio.h:568:
char *fgets (char *restrict s, int n, FILE *restrict stream)
     wur attr_access ((write_only__, 1, 2));

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:05 +01:00 committed by Michael Kerrisk
parent ebf67ad6ad
commit ef5781cf66
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ fgetc, fgets, getc, getchar, ungetc \- input of characters and strings
.BI "int getc(FILE *" stream );
.B "int getchar(void);"
.PP
.BI "char *fgets(char *" "s" ", int " "size" ", FILE *" "stream" );
.BI "char *fgets(char *restrict " s ", int " size ", FILE *restrict " stream );
.PP
.BI "int ungetc(int " c ", FILE *" stream );
.fi