]> pd.if.org Git - pdclib/blob - functions/stdio/setbuf.c
Merged PDPCLIB and Therx code.
[pdclib] / functions / stdio / setbuf.c
1 // ----------------------------------------------------------------------------
2 // $Id$
3 // ----------------------------------------------------------------------------
4 // Public Domain C Library - http://pdclib.sourceforge.net
5 // This code is Public Domain. Use, modify, and redistribute at will.
6 // ----------------------------------------------------------------------------
7
8 void setbuf( FILE * restrict stream, char * restrict buf ) { /* TODO */ };
9
10 /* PDPC code - unreviewed
11 {
12     int ret;
13
14     if (buf == NULL)
15     {
16         ret = setvbuf(stream, NULL, _IONBF, 0);
17     }
18     else
19     {
20         ret = setvbuf(stream, buf, _IOFBF, BUFSIZ);
21     }
22     return (ret);
23 }
24 */