summaryrefslogtreecommitdiff
path: root/src/print_forest.c
diff options
context:
space:
mode:
authorJSDurand <mmemmew@gmail.com>2023-08-04 10:12:04 +0800
committerJSDurand <mmemmew@gmail.com>2023-08-04 10:12:04 +0800
commit7033187abaf42772097377c0a1ffc2cd4cefdada (patch)
tree4fe0801fd07d965d009570f984c88af363a5bc7e /src/print_forest.c
parent228b51fe7941e2b180ee3ea99dfea4bfcbd6770b (diff)
minor adjustments
Not bug deals but adjustments of details.
Diffstat (limited to 'src/print_forest.c')
-rw-r--r--src/print_forest.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/print_forest.c b/src/print_forest.c
new file mode 100644
index 0000000..58832c9
--- /dev/null
+++ b/src/print_forest.c
@@ -0,0 +1,21 @@
+#include <stdio.h>
+#include "helper.h"
+#include "big_endian.h"
+
+int
+main(int argc, char **argv)
+{
+ if (argc < 2) {
+ fprintf(stderr, "One argument is required, which is the file name of the forest.\n");
+
+ return 1;
+ }
+
+ if (argc < 3) {
+ fprintf(stderr, "It is required to supply the ouput file name.\n");
+
+ return 1;
+ }
+
+ print_forest_file(*(argv+1), *(argv+2));
+}