🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.amiga.tech
Article #10275

Re: Lattice C

#10275
From: Morgan Jones
Date: Sun, 13 Nov 1988 22:17
27 lines
1081 bytes
In article <6013@killer.DALLAS.TX.US> jdp@killer.UUCP writes:
>Also, does the Unix (tm) function system() return to the caller when the
>external program is completed?

int
system(cmd)
	char *cmd;
{
	if (cmd == "" || cmd == NULL)
		Execute("",Input(),0L);
	else
		Execute("",0L,0L);
	return(0);
}

Though I can't remember if you have to specify output as well in either
case.  Alternatively, you may want to return -1 if Execute fails, but
you can't tell if the command failed.

>                                               Jim Pritchett



-- 
Morgan W. Jones                 morgan@hcr.uucp
HCR Corporation, Toronto, Ontario, Canada
BMATH - T minus 6 months and counting ...
Technical Details
Message-ID: <4197@hcr.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!attcan!lsuc!ncrcan!hcr!morgan
References: <6013@killer.DALLAS.TX.US>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!lsuc!ncrcan!hcr!morgan
From: morgan@hcr.UUCP (Morgan Jones)
Newsgroups: comp.sys.amiga.tech
Subject: Re: Lattice C
Keywords: Amiga Lattice C functions Unix
Message-ID: <4197@hcr.UUCP>
Date: 13 Nov 88 22:17:04 GMT
References: <6013@killer.DALLAS.TX.US>
Reply-To: morgan@hcr.UUCP (Morgan Jones)
Organization: HCR Corporation, Toronto
Lines: 27