All pastes #126400 Raw Edit

insider-

public text v1 · immutable
·published 2006-08-11 12:56 UTC
rendered paste body
#include <stdio.h>
 

int main(int arg, char * arc[]) {


int buffer[100][100];
FILE *banner;
FILE *out;
int i, j;
int theend;

if (arc[1] != NULL ) { 
banner = fopen(arc[1], "r");
out = fopen("lol.rev" , "w");
}

for (i==0; i<99 ; i++ ) {
theend = 0;
for (j==0; j<99 ; j++ ) {

if(theend == 0 ) buffer[i][j] = getc(banner) ;
if(theend == 1 ) buffer[i][j] = 86;
if (buffer[i][j] == 10){ 
theend = 1;
printf("\n New Line Found \n");
buffer[i][j] = 86;
}
fputc(buffer[i][j],stdout);
fputc(buffer[i][j],out);



}
}


for (i==0; i<99 ; i++ ) {
for (j==0; j<99 ; j++ ) {
// fputc(buffer[j][i], out);
}
}



fclose(banner);
fclose(out);
return 0;

}