>>279
#include <stdio.h>
#include <string.h>
char buf[10000];
int main(int argc, char *argv[]){
  char *src, *dst, *p = buf;
  int bufsize = sizeof(buf);
  size_t readbytes;
  FILE *srcfp, *dstfp;
  if(argc < 3) return -1;
  src = argv[1];
  dst = argv[2];
  if(0 == strcmp(src, dst)){
    int len;
    strcpy(buf, dst);
    strcat(buf, "1");
    dst = buf;
    len = strlen(buf) + 1;
    bufsize -= len;
    p += len;
  }
  if(!(srcfp = fopen(src, "rb"))) return -1;
  if(!(dstfp = fopen(dst, "wb"))){fclose(srcfp); return -1;}
  while( 0 < (readbytes = fread(p, 1, bufsize, srcfp)))
    fwrite(p, 1, readbytes, dstfp);
  fclose(srcfp);
  fclose(dstfp);
  return 0;
}