campo-sirio/mg/mg1.cpp
augusto 831763f4fb Modulo movimenti
git-svn-id: svn://10.65.10.50/trunk@4170 c028cbd2-c16b-5b4b-a496-9718f37d4682
1997-02-28 11:50:50 +00:00

23 lines
408 B
C++
Executable File

#include <xvt.h>
#include <strings.h>
#include "mg1.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:
rt = mg1100(argc,argv) ; break; // gestione manuale movimenti
default:
error_box(usage, argv[0]) ; break;
}
return rt ;
}