f = fopen("filename", "r");
c = fgetc(f);
if(c < 0) {
fclose(f);
system("type filename > filename.tmp");
f = fopen("filename.tmp", "r");
}
else {
rewind(f);
}
while(fgets(buff, 256, f) != NULL)
puts(f);
fclose(f);
return(0);
}
Name:
Anonymous2012-01-13 7:00
if is not a function. do is not a function. while is not a function. sizeof is not a function. (a + b) * c is not a function.
Since when do parenthesis imply functions?
Fucking autists.