add more legacy functions: setlinebuf and setbuffer

This commit is contained in:
Rich Felker committed 2011-04-05 12:25:31 -04:00
1 parent 8b61c81693
commit e72180083e
4 files changed
+17 -1

No files matched your search

+7
View File
@@ -0,0 +1,7 @@
#define _GNU_SOURCE
#include <stdio.h>
void setbuffer(FILE *f, char *buf, size_t size)
{
setvbuf(f, buf, buf ? _IOFBF : _IONBF, size);
}