Files
Sepp J Morris 31738079c4 Upload
Digital Research
2020-11-06 18:50:37 +01:00

20 lines
782 B
C

/* NOSTART.C - provides a routine to prevent the linkage of the */
/* 'normal' RTL startup routine, '_main()'. */
/* When this module is linked in, there will be no redirected */
/* i/o, the command line will not be parsed into argc/argv, standard */
/* i/o channels will not be opened, and files will not be closed */
/* automatically on termination. */
/* NOTE: 'argc/argv' is replaced by 'cmd/len', where cmd -> command tail */
/* and len is the length of this string. */
nostart() { ; } /* stubroutine tag */
_main(cmd,len) /* stubroutine for starup '_main()' */
char *cmd; /* ptr to CP/M command tail */
int len; /* length of CP/M command tail */
{
_exit(main(cmd,len)); /* call the main program */
}