campo-sirio/ba/ba5.cpp
augusto 298a1b4844 Aggiunta opzione caricamento ABI/CAB
git-svn-id: svn://10.65.10.50/trunk@5587 c028cbd2-c16b-5b4b-a496-9718f37d4682
1997-11-11 09:11:32 +00:00

29 lines
524 B
C++
Executable File

#include <xvt.h>
#include <strings.h>
#include <checks.h>
#include "ba5.h"
#define usage "Error - usage : %s -{0|1|2}"
int main(int argc,char** argv)
{
int rt = -1 ;
const int r = (argc > 1) ? atoi(&argv[1][1]) : -1;
switch (r)
{
case 0:
rt = ba5100(argc,argv) ; break; // ricerca soci
case 1:
rt = ba5200(argc,argv) ; break; // Gestione registri
case 2:
rt = ba5300(argc,argv) ; break; // ricezione AB/CAB
default:
error_box(usage, argv[0]) ; break;
}
return rt;
}