Mail Archives: djgpp/1999/07/21/10:32:22
On Wed, 21 Jul 1999, Vlad S. wrote:
> How could I possibly make two programs run at the same time? (i.e. in
> Windows two different windows/programs can be executed and both will work at
> the same time)
To start a program foo.exe in another DOS box on Windows, use this:
system ("start foo.exe");
> Another related question to make is how can I display a clock in a C program
> that works *while* the program performs other tasks? (i.e. in
> an RPG the user has one hour to disarm a bomb: the clock is displayed above
> while the user can input commands, etc.)
Use signal SIGALRM and the setitimer library function. They are
documented in the library reference.
- Raw text -