| 1 | #include "reverse_lib.h" |
| 2 | |
| 3 | #include <err.h> |
| 4 | #include <stdio.h> |
| 5 | #include <sysexits.h> |
| 6 | |
| 7 | int main(int argc, char** argv) { |
| 8 | if (argc != 2) { |
| 9 | errx(EX_USAGE, "Usage: reverse filename"); |
| 10 | } |
| 11 | |
| 12 | reverse_file(argv[1], stdout); |
| 13 | |
| 14 | return 0; |
| 15 | } |