Newsgroups: comp.parallel.pvm
From: johan@PROBLEM_WITH_INEWS_GATEWAY_FILE (Johan Meijdam)
Subject: BUG?
Organization: Delft University of Technology
Date: Tue, 29 Nov 1994 14:05:56 GMT
Message-ID: <D018Hx.94H@dutiws.twi.tudelft.nl>

/*	Please could anyone tell me why this program quits at the line
	teken = getc(invoer) when using the pvm 3.3.4 environment
	(this program runs without pvm and the pvm_... lines).
	Substituting getc() with fscanf() still causes this program
	to abort at the same line. Cout this be a bug or is it due to my
	computer overhere (HP Apollo 735 running HPUX)
*/ 

#include <stdio.h>
#include "pvm3.h"

main()
{	FILE *invoer;
	char teken;
	int  t;

	pvm_mytid();
	setbuf(stdout, NULL);
	invoer = fopen("datafile", "r");
	while (!feof(invoer)) {
		teken = getc(invoer);
		putchar(teken);
	}
	fclose(invoer);
	pvm_exit();
}


/*
*******************************************************
*                                                     *
*               Johan Meijdam                         *
*               Van der Waalsweg 105                  *
*               NL-2628 WT DELFT                      *
*               The Netherlands                       *
*                                                     *
*               johan@pa.twi.tudelft.nl               *
*                                                     *
*******************************************************
*/

