CE fix strange characters appearing at the end of file
All checks were successful
Build documentation / build-and-deploy (push) Successful in 2m46s

This commit is contained in:
2026-03-05 21:52:36 +01:00
parent abc7ac39c1
commit d7dc141874
6 changed files with 41 additions and 21 deletions

View File

@@ -49,17 +49,16 @@ int memcmp (const void* s1, const void* s2, size_t n) {
void strtokenize (const char* str, char delim, void* ctx, strtokenize_cb_func_t cb) {
const char* start = str;
const char* end;
while (*start) {
while (*start == delim && *start)
while (*start && *start == delim)
start++;
if (!*start)
break;
end = start;
while (*end != delim && *end)
const char* end = start;
while (*end && *end != delim)
end++;
if (!cb (ctx, start, (size_t)(end - start)))