spwnrd4g.c

来自「开放源码的编译器open watcom 1.6.0版的源代码」· C语言 代码 · 共 25 行

C
25
字号
/*
    spwnrd4g.c - The following program demonstrates how to
    spawn another Rational Systems DOS/4GW application.

    Compile and link: wcl386 -l=dos4g spwnrd4g.c
 */
#include <process.h>
#include <stdio.h>
#include <stdlib.h>

/* DOS/4GW var for WLINK MINREAL option */
unsigned __near __minreal = 100*1024;

void main()
{
    int app2_exit_code;

    puts( "Spawning a protected-mode application..."
          "using spawnlp() with P_WAIT" );
    app2_exit_code = spawnlp( P_WAIT, "dos4gw",
                            "dos4gw", "spwndd4g", NULL );
    printf( "Application #2 returned with exit code %d\n",
                            app2_exit_code );
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?