delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/07/21/10:32:22

Date: Wed, 21 Jul 1999 17:29:56 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: "Vlad S." <phoebus7 AT hotmail DOT com>
cc: djgpp AT delorie DOT com
Subject: Re: An aspect of C
In-Reply-To: <19990721134415.1303.qmail@hotmail.com>
Message-ID: <Pine.SUN.3.91.990721172657.429L-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019