/* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */ #include #include #include void setbuffer(FILE *f, void *buf, int size) { if (buf) setvbuf(f, (char *)buf, _IOFBF, size); else setvbuf(f, 0, _IONBF, 0); }