diff options
Diffstat (limited to 'src/string/strtok.c')
| -rw-r--r-- | src/string/strtok.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/string/strtok.c b/src/string/strtok.c index e031e55a..862581c7 100644 --- a/src/string/strtok.c +++ b/src/string/strtok.c @@ -1,7 +1,6 @@ -#if 0 - #include <string.h> -#include "_assert.h" +#include "_safety.h" +#undef strtok /** split string into tokens **/ @@ -11,6 +10,7 @@ char * strtok(char * restrict s1, const char * restrict s2) static char **state = ¤t; /* TODO */ + SIGNAL_SAFE(0); ASSERT_NONNULL(s2); /* @@ -38,6 +38,3 @@ CHAR(\0), terminating the token. /* STDC(1) */ - - -#endif |
