int check_permissions(char *file, char *required) {
    for (int i = 0; i < 9; i++) {
        if (required[i] != "-") {
            if (file[i] != required[i]) {
                return 1;
            }
        }
    }
    return 0;
}
how can I get value of index i in the required