user/lib/libc/src/file/default_streams.c
/**
 * Flushes the buffered contents of the output stream.
 */
Flushes the buffered contents of the output stream.
Flushes the buffered contents of the output stream .
static int DebugOutFlush(struct __libc_file_stream *_file) {
    struct DebugOutStream *file = (struct DebugOutStream *) _file;
    if(file->bufUsed) {
        DbgOut(file->buf, file->bufUsed);
        memset(file->buf, 0, file->bufUsed);
        file->bufUsed = 0;
    }
    return 0;
}
static int DebugOutFlush ( struct __libc_file_stream * _file ) { struct DebugOutStream * file = ( struct DebugOutStream * ) _file ; if ( file -> bufUsed ) { DbgOut ( file -> buf , file -> bufUsed ) ; memset ( file -> buf , 0 , file -> bufUsed ) ; file -> bufUsed = 0 ; } return 0 ; }
Flushes the buffered contents of the output stream.
Flushes the buffered contents of the output stream .