www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1993/08/17/07:28:08

From: pjbk AT cee DOT hw DOT ac DOT uk (Peter JB King)
Subject: Result of "system" calls
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Date: Tue, 17 Aug 93 11:32:51 WET DST

I have a suite of programs developed under TurboC, which I have
transferred to GnuC, using go32.  There is a slight problem that I have
observed.
When a call to system fails, then the value returned is 0.  This can
happen for example if a TurboC main program executes

	rc = system("gcc_prog ...");

and go32 is not in the PATH, or if the gcc_prog is interrupted by ^C.
In either case, system returns 0.  Should it not return some non zero
value?  (I don't know what UNIX does)
-- 
Peter King, Computing & Electrical Eng.	JANET:	pjbk AT uk DOT ac DOT hw DOT cee
  Heriot-Watt University		ARPA:	pjbk AT cee DOT hw DOT ac DOT uk
  Riccarton, Edinburgh EH14 4AS 	UUCP:	..!uknet!cee.hw.ac.uk!pjbk
Phone: (+44) 31 451 3433                Fax: (+44) 31 451 3431

- Raw text -


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