Date: Mon, 27 Feb 95 10:25:27 EST From: peprbv AT cfa0 DOT harvard DOT edu (Bob Babcock) To: jkeene AT unlinfo DOT unl DOT edu Cc: djgpp AT sun DOT soe DOT clarkson DOT edu Subject: Re: Question reagarding kbhit() Reply-To: babcock AT cfa DOT harvard DOT edu > Could anyone tell me why it is that when I run the following > program, it pauses for the keyboard hit _before_ doing any output? Probably because stdout is buffered. You can either do fflush(stdout) before requesting input or you can use setvbuf() to make it unbuffered.