More regression tests
Some checks are pending
Build / build-mac (push) Waiting to run
Build / build-linux (push) Waiting to run
Build / build-win (push) Waiting to run
CodeQL / Analyze (push) Waiting to run

This commit is contained in:
Andrea Mazzoleni 2025-10-28 00:05:49 +01:00
parent f4f386983a
commit d452b109bc
17 changed files with 1023 additions and 666 deletions

View file

@ -732,7 +732,7 @@ unsigned strsplit(char** split_map, unsigned split_max, char* str, const char* d
return mac;
}
void strtrim(char* str)
char* strtrim(char* str)
{
char* begin;
char* end;
@ -749,17 +749,21 @@ void strtrim(char* str)
if (begin != end)
memmove(str, begin, end - begin + 1);
return str;
}
#ifndef __MINGW32__
void strlwr(char* s)
char* strlwr(char* str)
{
char* s = str;
while (*s) {
*s = tolower((unsigned char)*s);
++s;
}
return str;
}
#endif
char* worddigitstr(const char* haystack, const char* needle)
{