add more legacy functions: setlinebuf and setbuffer
This commit is contained in:
1 parent
8b61c81693
commit
e72180083e
4 files changed
+17
-1
No files matched your search
@@ -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);
|
||||
}
|
||||
Reference in new issue
Block a user