#include #include void main() { char *buffer; FILE *fp; fp = fopen( "file", "r" ); buffer = (char *) malloc( BUFSIZ ); setbuf( fp, buffer ); /* . */ /* . */ /* . */ fclose( fp ); }