Path: utzoo!mnetor!uunet!lll-winken!lll-tis!ames!pasteur!ucbvax!CORY.BERKELEY.EDU!dillon From: dillon@CORY.BERKELEY.EDU (Matt Dillon) Newsgroups: comp.sys.amiga Subject: Re: printf() Message-ID: <8803030730.AA20513@cory.Berkeley.EDU> Date: 3 Mar 88 07:30:09 GMT Sender: daemon@ucbvax.BERKELEY.EDU Lines: 10 :beginning of the program, so I inserted a printf("Beginning\n"); as the :first line of the program, after the declarations. I still got a 'task :held' requester _before_ anything printed out. Well, I figured out that :the bug was in a fscanf(file,"%d",n), (forgot the &n) on about the :fourth line of the program. No, it should have printed it before crashing. I don't know about lattice, but in Aztec C the stdout buffer is flushed whenever a \n is encountered. Try sticking a fflush(stdout) after the printf... -Matt