aboutsummaryrefslogtreecommitdiff
path: root/newlib/libc/stdio/fgets.c
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/stdio/fgets.c')
-rw-r--r--newlib/libc/stdio/fgets.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/newlib/libc/stdio/fgets.c b/newlib/libc/stdio/fgets.c
index 319cfd5..0280ea0 100644
--- a/newlib/libc/stdio/fgets.c
+++ b/newlib/libc/stdio/fgets.c
@@ -26,10 +26,10 @@ INDEX
ANSI_SYNOPSIS
#include <stdio.h>
- char *fgets(char *<[buf]>, int <[n]>, FILE *<[fp]>);
+ char *fgets(char *restrict <[buf]>, int <[n]>, FILE *restrict <[fp]>);
#include <stdio.h>
- char *_fgets_r(struct _reent *<[ptr]>, char *<[buf]>, int <[n]>, FILE *<[fp]>);
+ char *_fgets_r(struct _reent *<[ptr]>, char *restrict <[buf]>, int <[n]>, FILE *restrict <[fp]>);
TRAD_SYNOPSIS
#include <stdio.h>
@@ -83,9 +83,9 @@ Supporting OS subroutines required: <<close>>, <<fstat>>, <<isatty>>,
char *
_DEFUN(_fgets_r, (ptr, buf, n, fp),
struct _reent * ptr _AND
- char *buf _AND
+ char *__restrict buf _AND
int n _AND
- FILE * fp)
+ FILE *__restrict fp)
{
size_t len;
char *s;
@@ -177,9 +177,9 @@ _DEFUN(_fgets_r, (ptr, buf, n, fp),
char *
_DEFUN(fgets, (buf, n, fp),
- char *buf _AND
+ char *__restrict buf _AND
int n _AND
- FILE * fp)
+ FILE *__restrict fp)
{
return _fgets_r (_REENT, buf, n, fp);
}