1#include <stdio.h> 2 3void setbuf(FILE *restrict f, char *restrict buf) 4{ 5 setvbuf(f, buf, buf ? _IOFBF : _IONBF, BUFSIZ); 6} 7