C Program that makes a copy of a file using standard I/O and system calls
#include #include #include void typefile (char *filename) { int fd, nread; char buf[1024]; fd = open (filename, O_RDONLY); if (fd == -1) { perror (filename); return; } while ((nread =…