// SPDX-License-Identifier: GPL-3.0-or-later #ifndef VCC_COMPAT_STRING_H #define VCC_COMPAT_STRING_H // CMOC declares the byte and string operations, including memmove, strchr, // strcmp and strtok, in its runtime header. Use those same declarations. #include // POSIX extension. Start with a writable string, then pass NULL to continue. // Give each active scan its own char * and pass its address on every call. // Tokens share the input buffer. Separators are skipped and each delimiter // that ends a returned token becomes a zero byte. char *strtok_r(char *text, const char *delimiters, char **saveptr); #endif