Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- FILE **files = malloc(sizeof(FILE *) * n);
- int cols = 3;
- int rows = n/cols;
- int files_index = 0;
- for(int row_nr = 0; row_nr < rows; row_nr++) {
- for(int i = row_nr; i < n; i += rows) {
- files[files_index++] = fopen(nameArray[i],'r');
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement