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