1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-31 18:31:04 +00:00

Remove old mystrtok_r for MinGW

This commit is contained in:
sfan5 2025-03-26 19:59:55 +01:00
parent e73eed247e
commit b146673c3d
3 changed files with 0 additions and 32 deletions

View file

@ -292,32 +292,6 @@ size_t mystrlcpy(char *dst, const char *src, size_t size) noexcept
return srclen;
}
char *mystrtok_r(char *s, const char *sep, char **lasts) noexcept
{
char *t;
if (!s)
s = *lasts;
while (*s && strchr(sep, *s))
s++;
if (!*s)
return nullptr;
t = s;
while (*t) {
if (strchr(sep, *t)) {
*t++ = '\0';
break;
}
t++;
}
*lasts = t;
return s;
}
u64 read_seed(const char *str)
{
char *endptr = nullptr;