mirror of
https://github.com/SEPPDROID/Digital-Research-Source-Code.git
synced 2025-10-23 00:14:25 +00:00
Upload
Digital Research
This commit is contained in:
23
CPM OPERATING SYSTEMS/CPM 68K/1.2 SOURCE/6/OPTOFF.C
Normal file
23
CPM OPERATING SYSTEMS/CPM 68K/1.2 SOURCE/6/OPTOFF.C
Normal file
@@ -0,0 +1,23 @@
|
||||
/* OPTOFF.C: prints a message in case someone tries to use a part of the */
|
||||
/* RTL which was OPTIONally linked out. */
|
||||
|
||||
#include "portab.h"
|
||||
#include "osif.h"
|
||||
|
||||
_optoff(msg)
|
||||
BYTE *msg;
|
||||
{
|
||||
BYTE buf[200]; /* ought to be big enough */
|
||||
|
||||
strcpy(buf,"C RTL - program not linked for ");
|
||||
strcat(buf,msg);
|
||||
strcat(buf,"\r\nProgram terminating\r\n$");
|
||||
__OSIF(C_WRITESTR,buf);
|
||||
_exit(FAILURE);
|
||||
}
|
||||
TESTR,buf);
|
||||
_exit(FAILURE);
|
||||
}
|
||||
TESTR,buf);
|
||||
_exit(FAILURE);
|
||||
}
|
Reference in New Issue
Block a user