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/wait.c

12 lines
206 B
C

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