8572375520
git-svn-id: svn://10.65.10.50/trunk@4873 c028cbd2-c16b-5b4b-a496-9718f37d4682
28 lines
545 B
C++
Executable File
28 lines
545 B
C++
Executable File
#include <xvt.h>
|
|
#include <strings.h>
|
|
//
|
|
// Gestione tabelle e Parametri di magazzino
|
|
#include "mg0.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: // gestione tabelle
|
|
rt = mg0100(argc,argv) ; break;
|
|
case 1: // stampa tabelle
|
|
rt = mg0200(argc,argv) ; break;
|
|
case 2: // configurazione mag
|
|
rt = mg0300(argc,argv) ; break;
|
|
default:
|
|
error_box(usage, argv[0]) ; break;
|
|
}
|
|
|
|
return rt ;
|
|
}
|