#include #include int main(void) { int c; FILE *src, *dst; src = fopen("src", "r"); if (src == NULL) { perror("src"); exit(1); } dst = fopen("dst", "w"); if (dst == NULL) { perror("dst"); fclose(src); exit(1); } while ((c = fgetc(src)) != EOF) { fputc(c, dst); } fclose(src); fclose(dst); return 0; }