projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
overhaul mbsrtowcs
[musl]
/
src
/
stdio
/
fgets.c
diff --git
a/src/stdio/fgets.c
b/src/stdio/fgets.c
index
3135a69
..
b01a418
100644
(file)
--- a/
src/stdio/fgets.c
+++ b/
src/stdio/fgets.c
@@
-1,8
+1,9
@@
#include "stdio_impl.h"
+#include <string.h>
#define MIN(a,b) ((a)<(b) ? (a) : (b))
-char *fgets(char *
s, int n, FILE *
f)
+char *fgets(char *
restrict s, int n, FILE *restrict
f)
{
char *p = s;
unsigned char *z;