scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | Submodules | README | LICENSE

setbuf.c (142B)


      1 #include <stdio.h>
      2 
      3 #undef setbuf
      4 
      5 void
      6 setbuf(FILE *restrict fp, char *restrict buf)
      7 {
      8 	setvbuf(fp, buf, (buf) ? _IOFBF : _IONBF, BUFSIZ);
      9 }