int main ()
FILE *fp1, *fp2;
setbuf ( fp1 , buffer );
fputs ("This is sent to a buffered stream",fp1);
setbuf ( fp2 , NULL );
fputs ("This is sent to an unbuffered stream",fp2);
//Set buf to null to turn off buffering.
//The buffer must be BUFSIZ characters long.
//BUFSIZ is defined in <stdio.h>.