static int r_io_zip_check_uri(const char *file) { int i; if (r_io_zip_has_uri_substr (file)) { for (i = 0; ZIP_URIS[i].name != NULL; i++) { if (!strncmp (file, ZIP_URIS[i].name, ZIP_URIS[i].len) && file[ZIP_URIS[i].len]) { return true; } } } return false; }
static int r_io_zip_check_uri(const char *file) { int res = R_FALSE; int i = 0; if (r_io_zip_has_uri_substr (file)) { for (i = 0; ZIP_URIS[i].name != NULL; i++) { if (!memcmp (file, ZIP_URIS[i].name, ZIP_URIS[i].len) && file[ZIP_URIS[i].len]) { res = R_TRUE; break; } } } return res; }
static int r_io_zip_check_uri_many(const char *file) { int res = false; int i = 0; if (r_io_zip_has_uri_substr (file)) { for (i = 0; ZIP_ALL_URIS[i].name != NULL; i++) { if (!memcmp (file, ZIP_ALL_URIS[i].name, ZIP_ALL_URIS[i].len) && file[ZIP_ALL_URIS[i].len]) { res = true; break; } } } return res; }