Path: utzoo!attcan!uunet!lll-winken!lll-tis!ames!ll-xn!mit-eddie!uw-beaver!ssc-vax!uvicctr!tholm
From: tholm@uvicctr.UUCP (Terrence W. Holm)
Newsgroups: comp.os.minix
Subject: 1.3 getc and unbuffered files
Message-ID: <452@uvicctr.UUCP>
Date: 12 Jul 88 22:54:41 GMT
Reply-To: tholm@uvicctr.UUCP (Terrence W. Holm)
Organization: University of Victoria, Victoria B.C. Canada
Lines: 15

There is a problem with unbuffered files in MINIX 1.3 getc(),
try the following,

-------------------------------------------------------
#include 

main() {
  int c;
  FILE *f = fopen( ".profile", "r" );

  setbuf( f, NULL );

  while( (c = getc(f)) != EOF )
    putchar( c );
}
-------------------------------------------------------