diff --git a/libs/libc/include/string.h b/libs/libc/include/string.h index 6e45ff9a..7ce34c14 100644 --- a/libs/libc/include/string.h +++ b/libs/libc/include/string.h @@ -91,6 +91,8 @@ extern "C" __lc_deprecated("strcat is unsafe and should not be used; use strncat instead") char* strcat(char* dest, const char* src); + char* strtok(char* str, const char* delim); // Not implemented. + #ifdef __cplusplus } #endif diff --git a/libs/libc/src/string.cpp b/libs/libc/src/string.cpp index 1d431623..974bc5cd 100644 --- a/libs/libc/src/string.cpp +++ b/libs/libc/src/string.cpp @@ -1,4 +1,5 @@ #include +#include #include #include @@ -295,4 +296,9 @@ extern "C" } #pragma GCC pop_options + + char* strtok(char*, const char*) + { + NOT_IMPLEMENTED("strtok"); + } } \ No newline at end of file