aboutsummaryrefslogtreecommitdiffstats
path: root/src/wchar/wcstok.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/wchar/wcstok.c')
-rw-r--r--src/wchar/wcstok.c33
1 files changed, 0 insertions, 33 deletions
diff --git a/src/wchar/wcstok.c b/src/wchar/wcstok.c
index 583defd..dbf0c5f 100644
--- a/src/wchar/wcstok.c
+++ b/src/wchar/wcstok.c
@@ -54,36 +54,3 @@ wchar_t* wcstok(wchar_t* restrict string, const wchar_t* restrict delimiters,
}
}
-
-/**
- * Tokenise a string.
- *
- * This is a slibc extension.
- *
- * @param string Pointer to the string to tokenise on the first call,
- * will be updated to keep track of the state.
- * All characters found in `delimiters` will
- * be overriden with NUL characters.
- * @param delimiters Delimiting characters.
- * @return The next, possibly empty, string that does
- * not contain a byte from `delimiters`. The
- * returned string will be as long as possible.
- * `NULL` is returned the search as reached
- * the end of the string, and there therefore
- * are no more tokens.
- */
-wchar_t* wcssep(wchar_t** restrict string, const wchar_t* restrict delimiters)
-{
- wchar_t* r = *string;
- wchar_t* next;
- if (r == NULL)
- return NULL;
-
- next = wcspbrk(r, delimiters);
- if (next != NULL)
- *next++ = 0;
- *string = next;
-
- return r;
-}
-