#include <stdio.h>
int main(int argc, char *argv[]) {
if(argc != 3) { printf("usage: chop <input> <output>\\n"); return 0; }
FILE *fp = fopen(argv[1], "rb");
FILE *wr = fopen(argv[2], "wb");
fseek(fp, 0, SEEK_END);
int filesize = ftell(fp);
fseek(fp, 0x10800, SEEK_SET); //feof() annoys me for some reason
for(int i = 0x10800; i < filesize; i++) {
fputc(fgetc(fp), wr);
}
fclose(fp);
fclose(wr);
printf("finished\\n");
return 0;
}