From 7033187abaf42772097377c0a1ffc2cd4cefdada Mon Sep 17 00:00:00 2001 From: JSDurand Date: Fri, 4 Aug 2023 10:12:04 +0800 Subject: minor adjustments Not bug deals but adjustments of details. --- src/print_forest.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 src/print_forest.c (limited to 'src/print_forest.c') 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 +#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)); +} -- cgit v1.2.3-18-g5258