Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!spool.mu.edu!uunet!cbmvax!cbmehq!cbmfra!swinjm!forgeas From: forgeas@swinjm.UUCP (Jean-Michel Forgeas) Newsgroups: comp.sys.amiga.programmer Subject: Re: C questions (again) Message-ID: <18a64c31.ARN0d59@swinjm.UUCP> Date: 8 Feb 91 11:27:45 GMT References: <1991Feb7.114348.10577@marlin.jcu.edu.au> Reply-To: forgeas@swinjm.UUCP (Jean-Michel Forgeas) Followup-To: comp.sys.amiga.programmer Organization: The Software Winery Lines: 20 In article <1991Feb7.114348.10577@marlin.jcu.edu.au>, Matt Crowd writes: > input = (struct FileHandle *) Input(); // get filehandle of stdin > printf("This is program 1!\n"); > Execute("program2",input,0); // run program2 ^^-----------------------------it's here > printf("Because of something very wierd, this line " > "will not be printed. I do not know why.\n"); The parameters of Execute() are: ( "program name", input, output ) Since your "program2" does 'printf' it needs an output. It has not, so it prints 'into the air'... and hangs. This should work: Execute("program2",input,Output()); -- \___/ Jean-Michel Forgeas \-/ cbmvax!cbmehq!cbmfra!swinjm!forgeas | The Software Winery -^- And, where is the universe ?