We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a484c4b commit 930e37eCopy full SHA for 930e37e
libc/src/wchar/wcstok.cpp
@@ -16,7 +16,15 @@ namespace LIBC_NAMESPACE_DECL {
16
LLVM_LIBC_FUNCTION(wchar_t *, wcstok,
17
(wchar_t *__restrict str, const wchar_t *__restrict delim,
18
wchar_t **__restrict ptr)) {
19
-
+ if (str == nullptr)
20
+ str = *ptr;
21
+
22
+ while (*str != L'\0') {
23
+ bool inDelim = false;
24
+ for (const wchar_t* delim_ptr = delim; delim_ptr != L'\0'; delim_ptr++) {
25
26
+ }
27
28
}
29
30
} // namespace LIBC_NAMESPACE_DECL
0 commit comments