home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Professional / OS2PRO194.ISO / os2 / prgramer / rcs / sources / cii.c < prev    next >
C/C++ Source or Header  |  1992-01-13  |  732b  |  29 lines

  1. #define INCL_NOPM
  2. #define INCL_DOSMISC
  3. #define INCL_DOSPROCESS
  4. #include <os2.h>
  5.  
  6. void main(void)
  7. {
  8.   SEL selEnviron;
  9.   USHORT usOffsetCmd;
  10.   PSZ pszCmdline;
  11.   CHAR chFailName[256];
  12.   RESULTCODES rescResults;
  13.  
  14.   DosGetEnv(&selEnviron, &usOffsetCmd);
  15.   pszCmdline = MAKEP(selEnviron, usOffsetCmd);
  16.  
  17.   DosExit(EXIT_PROCESS,
  18.           DosExecPgm(chFailName, sizeof(chFailName), EXEC_SYNC, pszCmdline,
  19.                      NULL, &rescResults, "coo.exe") == 0
  20.           ? rescResults.codeResult : -1);
  21. }
  22.  
  23. void _setenvp(void) {}
  24.  
  25. int printf(const char *fmt, ...) { return 0; }
  26. int sprintf(char *buf, const char *fmt, ...) { return 0; }
  27. int flushall(void) { return 0; }
  28. int _flsbuf(int x, void *f) { return 0; }
  29.