mirror of
https://github.com/SEPPDROID/Digital-Research-Source-Code.git
synced 2025-10-24 08:54:17 +00:00
Upload
Digital Research
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
|
||||
/* 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 */
|
||||
}
|
||||
Reference in New Issue
Block a user