|
|
1.1 root 1: /* 1.1.1.2 ! root 2: * Example of DosCWait usage. 1.1 root 3: * 4: * Child program that will return a random return code. 5: * 6: * Compile as: cl -AL -G2 -Lp child.c 7: * 1.1.1.2 ! root 8: * Created by Microsoft Corp. 1986 1.1 root 9: */ 10: 1.1.1.2 ! root 11: #include <os2def.h> ! 12: #include <bsedos.h> 1.1 root 13: #include <stdio.h> 14: 15: #define ECODE 42 16: 17: main() 18: { 19: printf("child program, terminating with return code = %u\n", ECODE); 1.1.1.2 ! root 20: DosExit(EXIT_PROCESS,ECODE); 1.1 root 21: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.