Support compiling split cils via magiskpolicy CLI

This commit is contained in:
topjohnwu
2018-07-21 05:12:22 +08:00
parent 6263d684d9
commit 91818cfa1a
8 changed files with 151 additions and 130 deletions

View File

@@ -477,3 +477,9 @@ void gen_rand_str(char *buf, int len) {
}
buf[len - 1] = '\0';
}
int strend(const char *s1, const char *s2) {
size_t l1 = strlen(s1);
size_t l2 = strlen(s2);
return strcmp(s1 + l1 - l2, s2);
}