CE fix strange characters appearing at the end of file
All checks were successful
Build documentation / build-and-deploy (push) Successful in 2m46s
All checks were successful
Build documentation / build-and-deploy (push) Successful in 2m46s
This commit is contained in:
@@ -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)))
|
||||
|
||||
Reference in New Issue
Block a user