home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
rtsi.com
/
2014.01.www.rtsi.com.tar
/
www.rtsi.com
/
OS9
/
OSK
/
CMDS
/
mtools_3.6.src.lzh
/
MTOOLS_3.6
/
msread.c
< prev
next >
Wrap
C/C++ Source or Header
|
1997-11-13
|
556b
|
33 lines
#include "sysincludes.h"
#include "msdos.h"
#include "mtools.h"
#include "patchlevel.h"
const char *mversion = VERSION;
const char *mdate = DATE;
const char *progname;
void main(int argc,char **argv)
{
char *name;
/* print the version */
if(argc >= 2 && strcmp(argv[1], "-V") == 0) {
printf("Mtools version %s, dated %s\n", mversion, mdate);
exit(0);
}
if ((name = strrchr(argv[0],'/')))
name++;
else name = argv[0];
argv[0] = name;
progname = argv[0];
read_config();
setup_signal();
mcopy(argc, argv, 0);
cleanup_and_exit(1);
}