Running the code with the following stdin from a file:
"total 329
-rwx------  1 reid  staff    1734 Jun 22 14:52 prog
-rw-------  1 reid  staff   21510 Apr  6 12:10 tmp.txt
-rwxr-xr-x  1 reid  staff    8968 Feb  1 2013 xyz
-rw-r--r--  1 reid  staff      88 Feb 15 2013 xyz.c"
What should be printed out, and why?
#include <stdio.h>
#include <stdlib.h>


// TODO: Implement a helper named check_permissions that matches the prototype below.
int check_permissions(char *, char *);


int main(int argc, char** argv) {
    if (!(argc == 2 || argc == 3)) {
        fprintf(stderr, "USAGE: count_large size [permissions]\n");
        return 1;
    }
    char* specified_size = argv[1];
    char* specified_permission = argv[2];
    printf("%s\t%s\n", specified_size, specified_permission);

    int total_num;
    scanf("%*s %d\n", &total_num);

    printf("%d\n", total_num);


    char permissions[10];
    int size;
    char filename[20];

    while (scanf("%9s %*s %*s %*s %d %*s %*s %*s %s", permissions, &size, filename) != EOF) {
        printf("%s\n", permissions);
        printf("%s\t%d\t%s\n", permissions, size, filename);
    }
    // TODO: Process the command line parameters

    // TODO: Call check_permissions as part of your solution to count the files to
    // compute and print the correct value.

    return 0;
}

