Path: 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 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 ...