
int total;
int done;
done = scanf("%*s %d %*c", &total);
printf("%d\n%d\n", total, done);

int size = malloc(sizeof(int));
done = scanf("%*s %*s %*s %*s %d", size);
printf("%d\n%d\n", size, done);

given the stdin "total 320
-rw-r--r--  4 joshualunger  staff    763 27 Jan 17:01 Makefile
-rwxr-xr-x  1 joshualunger  staff  33560 27 Jan 22:24 count_large
" return 310\n1\n763\n1 to stdin