ref: 488049b6b56ab50d7be0e7dda5bdbbded5e5d2df dir: /lib/c/setbuf.c/
#include <stdio.h> #undef setbuf void setbuf(FILE * restrict fp, char * restrict buf) { setvbuf(fp, buf, (buf) ? _IOFBF : _IONBF, BUFSIZ); }