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