Date: Wed, 21 Jul 1999 17:29:56 +0300 (IDT) From: Eli Zaretskii X-Sender: eliz AT is To: "Vlad S." cc: djgpp AT delorie DOT com Subject: Re: An aspect of C In-Reply-To: <19990721134415.1303.qmail@hotmail.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk 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.