X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=functions%2Fstdio%2Fsetbuf.c;h=85137af39ff18a8ecf6bd602434c8e785a120aa9;hb=e5456e3c2697c4e17fc9aa3439f2e305517b4d96;hp=6d689b0f3f0fc2f8fdf66fb7cba894abfbd1a318;hpb=dcc8a8e99f69e090a03b7b868443addbc0817820;p=pdclib.old diff --git a/functions/stdio/setbuf.c b/functions/stdio/setbuf.c index 6d689b0..85137af 100644 --- a/functions/stdio/setbuf.c +++ b/functions/stdio/setbuf.c @@ -6,3 +6,19 @@ // ---------------------------------------------------------------------------- void setbuf( FILE * restrict stream, char * restrict buf ) { /* TODO */ }; + +/* PDPC code - unreviewed +{ + int ret; + + if (buf == NULL) + { + ret = setvbuf(stream, NULL, _IONBF, 0); + } + else + { + ret = setvbuf(stream, buf, _IOFBF, BUFSIZ); + } + return (ret); +} +*/