/* $ dcc rm.c $ ./a.out myFile $ ls -l myFile ls: cannot access 'myFile': No such file or directory $ */ #include #include // remove the specified files int main(int argc, char *argv[]) { for (int arg = 1; arg < argc; arg++) { if (unlink(argv[arg]) != 0) { perror(argv[arg]); // prints why the unlink failed return 1; } } return 0; }