summaryrefslogtreecommitdiffstats
path: root/libc-top-half/musl/src/stdio/setbuffer.c
blob: 71233d2ec1aee44d044786b68d1cbbc6d39d9e33 (plain)
1
2
3
4
5
6
7
#define _GNU_SOURCE
#include <stdio.h>

void setbuffer(FILE *f, char *buf, size_t size)
{
	setvbuf(f, buf, buf ? _IOFBF : _IONBF, size);
}