The BSD rev Utility: "[rev] copies the specified file(s) to the standard output, reversing the order of characters in every line."
Write a C program to implement rev. Your program should take a single file as input and reverse each line to stdout. Your implementation may limit the maximum line size to 1024. Use of stdio.h functions is not allowed, only system calls. Pero (is allowed).
Use the built-in rev command to verify your program where the following 2 commands should produce the same result:
$ rev testInput.txt
$ ./MyRev testInput.txt