xref: /aosp_15_r20/external/musl/src/stdio/setbuf.c (revision c9945492fdd68bbe62686c5b452b4dc1be3f8453)
1*c9945492SAndroid Build Coastguard Worker #include <stdio.h>
2*c9945492SAndroid Build Coastguard Worker 
setbuf(FILE * restrict f,char * restrict buf)3*c9945492SAndroid Build Coastguard Worker void setbuf(FILE *restrict f, char *restrict buf)
4*c9945492SAndroid Build Coastguard Worker {
5*c9945492SAndroid Build Coastguard Worker 	setvbuf(f, buf, buf ? _IOFBF : _IONBF, BUFSIZ);
6*c9945492SAndroid Build Coastguard Worker }
7