mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-10-16 16:51:23 +00:00
Support compiling split cils via magiskpolicy CLI
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user