5 This file is part of the Public Domain C Library (PDCLib).
6 Permission is granted to use, modify, and / or redistribute at will.
10 #include <_PDCLIB_glue.h>
14 int fflush( struct _PDCLIB_file_t * stream )
16 /* FIXME: This is ad-hoc. */
17 if ( fwrite( stream->buffer, stream->bufidx, 1, stream ) == stream->bufidx )
24 stream->status |= _PDCLIB_ERRORFLAG;
32 #include <_PDCLIB_test.h>
36 TESTCASE( NO_TESTDRIVER );