[libcxx-commits] [libcxx] [libcxx][c++26] 2937R0: Freestanding: Remove strtok (PR #146290)
A. Jiang via libcxx-commits
libcxx-commits at lists.llvm.org
Sun Jun 29 19:59:42 PDT 2025
================
@@ -47,7 +47,7 @@ const char* strrchr(const char* s, int c);
size_t strspn(const char* s1, const char* s2);
const char* strstr(const char* s1, const char* s2);
char* strstr( char* s1, const char* s2);
-char* strtok(char* restrict s1, const char* restrict s2);
+char* strtok(char* restrict s1, const char* restrict s2); // not freestanding in C++
----------------
frederick-vs-ja wrote:
`strtok` is also non-freestanding in C23.
```suggestion
char* strtok(char* restrict s1, const char* restrict s2); // not freestanding
```
https://github.com/llvm/llvm-project/pull/146290
More information about the libcxx-commits
mailing list