INNER CODE UNIT · C

path_has_deb_extension

witchan/ios-mcp · mcp-root/main.c:173

static int path_has_deb_extension(const char *path) {
    size_t len;

    if (!path) {
        return 0;
    }

    len = strlen(path);
    if (len < 4) {
        return 0;
    }

    return strcasecmp(path + len - 4, ".deb") == 0;
}

static int path_is_deb_file(const char *path) {
    char resolvedPath[PATH_MAX];
    struct stat st;

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…