--- os2sdk/demos/examples/cwait/child.c 2018/08/09 12:25:13 1.1.1.1 +++ os2sdk/demos/examples/cwait/child.c 2018/08/09 12:26:16 1.1.1.2 @@ -1,14 +1,15 @@ /* - * Example of DOSCWAIT usage. + * Example of DosCWait usage. * * Child program that will return a random return code. * * Compile as: cl -AL -G2 -Lp child.c * - * Copyright (C) Microsoft Corp. 1986 + * Created by Microsoft Corp. 1986 */ -#include +#include +#include #include #define ECODE 42 @@ -16,5 +17,5 @@ main() { printf("child program, terminating with return code = %u\n", ECODE); - DOSEXIT(1, ECODE); + DosExit(EXIT_PROCESS,ECODE); }