+ stream = _PDCLIB_filelist;
+ /* TODO: Check what happens when fflush( NULL ) encounters write errors, in other libs */
+ int rc = 0;
+ while ( stream != NULL )
+ {
+ if ( stream->bufidx > stream->bufend )
+ {
+ rc |= _PDCLIB_fflush( stream );
+ }
+ stream = stream->next;
+ }
+ return rc;