Okay so I tried to put the results from the test into a new file and so I changed the code to this.
Code:
void prune(void) /*Prune results*/{
int i, bi, ini, reps; /*Counter, branch counter, inner counter, # of sims*/
char str[311], rev; /*Line by line string, reversal detector*/
FILE *fs;
if((fs = fopen("compreadasym32.txt", "a+")) == NULL) { /*Complex computer readable summary file*/
printf("Error opening file.\n");
exit(1);
}
FILE *ft;
if((ft = fopen("readassym32.txt", "a+")) == NULL) {
printf("Error opening file.\n");
exit(1);
}
fscanf(fs, "%d", &reps);
for(i=0; i<reps; i++) {
for(bi=0; bi<32; bi++) {
fgets(str, 311, fs);
for(ini=1; ini<310; ini++) if((str[ini]-str[ini-1])==1) rev++;
}
if(!rev) fprintf(ft, "R%d\n", i);
rev=0;
}
fclose(fs);
}
It does make the other file and reports a column of R_ for some but not all of the block numbers. The only problem is it it wrong about which ones have "01".