This repository has been archived on 2024-12-16. You can view files and clone it, but cannot push or open issues or pull requests.
CodeBlocksPortable/WATCOM/samples/clibexam/cwait.c

13 lines
241 B
C

#include <stdio.h>
#include <process.h>
void main()
{
int process_id;
int status;
process_id = spawnl( P_NOWAIT, "child.exe",
"child", "parm", NULL );
cwait( &status, process_id, WAIT_CHILD );
}