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

23 lines
864 B
C
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/* 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 */
}
ll the main program */
}
ll the main program */
}