#include int il[16]={0x0,0xe,0xd,0xc,0xb,0xa,0x9,0x8,0x7,0x6,0x5,0x4,0x3,0x2,0x1,0xf}; main(argc,argv) int argc; char **argv; { FILE *f,*g; char buf[4096]; int t,s; f=fopen(argv[1],"r"); g=fopen(argv[2],"w"); for (t=0;t<35;t++) { for (s=0;s<16;s++) { fread(buf+256*il[s],1,256,f); } fwrite(buf,1,4096,g); } fclose(f); fclose(g); }