X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: iunknown2k4 AT yahoo DOT co DOT in (anonymous) Newsgroups: comp.os.msdos.djgpp Subject: Re: Problem using system( ) Date: 18 Sep 2004 23:41:10 -0700 Organization: http://groups.google.com Lines: 15 Message-ID: References: <01c49dc8$Blat.v2.2.2$6fa7bb60 AT zahav DOT net DOT il> NNTP-Posting-Host: 202.9.150.188 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1095576070 1191 127.0.0.1 (19 Sep 2004 06:41:10 GMT) X-Complaints-To: groups-abuse AT google DOT com NNTP-Posting-Date: Sun, 19 Sep 2004 06:41:10 +0000 (UTC) To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com --[snip]-- > There's no need to do that, the lower 8 bits are correctly > sign-extended into the return value (which is an int). See the test > program I posted for the much simpler way of testing the return value. I tried the program in Message-ID: It works as you explained. For my purpose this is enough. Thanks. But, is it better to use spawn* when the extension is not known? Or when I'm not sure if it is .exe/.com. --[snip]--