1997-10-23 15:13:47 +00:00
|
|
|
#include <xvt.h>
|
|
|
|
#include <checks.h>
|
|
|
|
|
|
|
|
#include "ab1.h"
|
|
|
|
|
|
|
|
#define usage "Error - usage : %s -{0|1|2|3|4|5|6|7|8|9}"
|
|
|
|
|
|
|
|
int main(int argc, char** argv)
|
|
|
|
{
|
|
|
|
int rt = -1;
|
|
|
|
const int r = (argc > 1) ? atoi(&argv[1][1]) : -1;
|
|
|
|
|
|
|
|
switch (r)
|
|
|
|
{
|
|
|
|
case 0:
|
1997-12-15 11:12:32 +00:00
|
|
|
rt = ab1100(argc,argv) ; break; // Sintassi ab1 -0 %tabella -utente
|
1997-10-23 15:13:47 +00:00
|
|
|
case 1:
|
1997-12-15 11:12:32 +00:00
|
|
|
rt = ab1200(argc,argv) ; break; // Sintassi ab1 -1 -utente
|
1997-10-23 15:13:47 +00:00
|
|
|
default:
|
|
|
|
error_box(usage, argv[0]) ; break;
|
|
|
|
}
|
2003-03-20 11:05:31 +00:00
|
|
|
exit(rt);
|
1997-10-23 15:13:47 +00:00
|
|
|
}
|