libc: Stub out strtok()

This commit is contained in:
apio 2022-11-09 11:37:41 +01:00
parent f8f5968753
commit da4c0d5184
2 changed files with 8 additions and 0 deletions

View File

@ -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

View File

@ -1,4 +1,5 @@
#include <errno.h>
#include <luna.h>
#include <stdlib.h>
#include <string.h>
@ -295,4 +296,9 @@ extern "C"
}
#pragma GCC pop_options
char* strtok(char*, const char*)
{
NOT_IMPLEMENTED("strtok");
}
}