28 lines
		
	
	
		
			530 B
		
	
	
	
		
			C++
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
		
			530 B
		
	
	
	
		
			C++
		
	
	
		
			Executable File
		
	
	
	
	
#include <xvt.h>
 | 
						|
 | 
						|
#include <checks.h>
 | 
						|
#include <strings.h>
 | 
						|
 | 
						|
#include "ba2.h"
 | 
						|
 | 
						|
#define usage   "Error - usage : %s -{0|1|2}"
 | 
						|
 | 
						|
int main(int argc,char* argv[])
 | 
						|
 | 
						|
{
 | 
						|
  int             rt = 0 ;
 | 
						|
  const TString p = argv[0], s = argv[1] ;
 | 
						|
 | 
						|
  if (argc!=2) fatal_box(usage, (const char*) p) ;
 | 
						|
  else
 | 
						|
    {
 | 
						|
      if (s == "-0")  rt = ba2300(argc,argv);
 | 
						|
      else
 | 
						|
	if (s == "-1")  rt = ba2300(argc,argv) ;
 | 
						|
	else
 | 
						|
	  if (s == "-2")  rt = ba2300(argc,argv) ;
 | 
						|
	  else fatal_box(usage, (const char*) p) ;                   
 | 
						|
    }
 | 
						|
  return rt;
 | 
						|
  }
 |