home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Professional
/
OS2PRO194.ISO
/
os2
/
prgramer
/
rcs
/
sources
/
cii.c
< prev
next >
Wrap
C/C++ Source or Header
|
1992-01-13
|
732b
|
29 lines
#define INCL_NOPM
#define INCL_DOSMISC
#define INCL_DOSPROCESS
#include <os2.h>
void main(void)
{
SEL selEnviron;
USHORT usOffsetCmd;
PSZ pszCmdline;
CHAR chFailName[256];
RESULTCODES rescResults;
DosGetEnv(&selEnviron, &usOffsetCmd);
pszCmdline = MAKEP(selEnviron, usOffsetCmd);
DosExit(EXIT_PROCESS,
DosExecPgm(chFailName, sizeof(chFailName), EXEC_SYNC, pszCmdline,
NULL, &rescResults, "coo.exe") == 0
? rescResults.codeResult : -1);
}
void _setenvp(void) {}
int printf(const char *fmt, ...) { return 0; }
int sprintf(char *buf, const char *fmt, ...) { return 0; }
int flushall(void) { return 0; }
int _flsbuf(int x, void *f) { return 0; }