blob: b72139767491aa0821e6084802575413cf0eaa7b [file] [log] [blame] [raw]
#include <stdio.h>
void setbuffer(FILE *fp, char *buf, size_t size) {
setvbuf(fp, buf, buf ? _IOFBF : _IONBF, size);
}
void setbuf(FILE *fp, char *buf) {
setvbuf(fp, buf, buf ? _IOFBF : _IONBF, BUFSIZ);
}