rework langinfo code for ABI compat and for use by time code
[musl] / src / stdio / fgets.c
index 3135a69..b01a418 100644 (file)
@@ -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;