]> pd.if.org Git - pdclib/blobdiff - functions/stdio/setbuf.c
Merged PDPCLIB and Therx code.
[pdclib] / functions / stdio / setbuf.c
index 6d689b0f3f0fc2f8fdf66fb7cba894abfbd1a318..85137af39ff18a8ecf6bd602434c8e785a120aa9 100644 (file)
@@ -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);
+}
+*/