projects
/
oweals
/
musl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
support linux kernel apis (new archs) with old syscalls removed
[oweals/musl.git]
/
src
/
stdio
/
fgets.c
diff --git
a/src/stdio/fgets.c
b/src/stdio/fgets.c
index 3135a69a2b9ebfe7b8475af708295c9e7e626056..b01a4187037d81e6457e473c4e682e24787c9021 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;