#include #include #include #include #include #include "stubbytes.h" main(int argc, char **argv) { int i; for (i=1; i 0) { int wb = write(ofile, buf, rbytes); if (wb < 0) { perror(ofname); break; } if (wb < rbytes) { fprintf(stderr, "%s: disk full\n", ofname); exit(1); } } close(ifile); close(ofile); free(ofname); /* remove(fname); */ }