summaryrefslogtreecommitdiff
path: root/src/print_forest.c
blob: 58832c9ec398ade585a6730334d8158d02a5c558 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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));
}