]> pd.if.org Git - pdclib/blob - setbuf.c
85137af39ff18a8ecf6bd602434c8e785a120aa9
[pdclib] / 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 */