반응형
void
setbuffer(FILE *fp, char *buf, int size)
#include <stdio.h> void setbuffer(FILE *fp, char *buf, int size) { (void)setvbuf(fp, buf, buf ? _IOFBF : _IONBF, size); } /* * set line buffering */ int setlinebuf(FILE *fp) { return (setvbuf(fp, (char *)NULL, _IOLBF, (size_t)0)); }
반응형