Skip to content

Commit 930e37e

Browse files
committed
started impl
1 parent a484c4b commit 930e37e

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

libc/src/wchar/wcstok.cpp

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,15 @@ namespace LIBC_NAMESPACE_DECL {
1616
LLVM_LIBC_FUNCTION(wchar_t *, wcstok,
1717
(wchar_t *__restrict str, const wchar_t *__restrict delim,
1818
wchar_t **__restrict ptr)) {
19-
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+
}
2028
}
2129

2230
} // namespace LIBC_NAMESPACE_DECL

0 commit comments

Comments
 (0)