use restrict everywhere it's required by c99 and/or posix 2008
[musl] / src / string / strtok_r.c
index c763897..862d4fe 100644 (file)
@@ -1,6 +1,6 @@
 #include <string.h>
 
-char *strtok_r(char *s, const char *sep, char **p)
+char *strtok_r(char *restrict s, const char *restrict sep, char **restrict p)
 {
        if (!s && !(s = *p)) return NULL;
        s += strspn(s, sep);