Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site watdcsu.UUCP Path: utzoo!watmath!watdcsu!mackie From: mackie@watdcsu.UUCP (mackie) Newsgroups: net.lang.c Subject: re: Waterloo C - stdout output Message-ID: <1230@watdcsu.UUCP> Date: Thu, 11-Apr-85 19:30:22 EST Article-I.D.: watdcsu.1230 Posted: Thu Apr 11 19:30:22 1985 Date-Received: Fri, 12-Apr-85 00:03:38 EST Distribution: net Organization: U of Waterloo, Ontario Lines: 25 On CMS, output to "stdout" is buffered. The contents of the buffer are displayed when any of the following conditions are satisfied: a) the buffer is full, b) an explicit call to "fflush( stdout )" is made, c) the program ends, or d) a terminal read operation (e.g., "getchar()") takes place. Following is an example of a program that should demonstrate case 'd': -----------cut here----------- #include extern printf(); main() { printf( "Press RETURN or ENTER\n" ); printf( "getchar() returned '%d'\n", getchar() ); return( 0 ); }