[v0.99] Refactor cut text and add support for ARM too

This commit is contained in:
Dr-Noob
2021-08-14 19:08:22 +02:00
parent 4e29e481b7
commit f8f81c3222
3 changed files with 28 additions and 22 deletions

View File

@@ -73,6 +73,10 @@ int max(int a, int b) {
return a > b ? a : b;
}
int min(int a, int b) {
return a < b ? a : b;
}
char *strremove(char *str, const char *sub) {
char *p, *q, *r;
if (*sub && (q = r = strstr(str, sub)) != NULL) {