]>
git.scottworley.com Git - overonion/blob - reverse.c
1 #include "reverse_lib.h"
8 int main(int argc
, char** argv
) {
9 if (argc
== 1 || (argc
== 2 && strcmp(argv
[1], "-") == 0)) {
10 reverse_stream(stdin
, stdout
);
11 } else if (argc
== 2) {
12 reverse_file(argv
[1], stdout
);
14 errx(EX_USAGE
, "Usage: reverse filename");