home *** CD-ROM | disk | FTP | other *** search
- #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; }
-