user/lib/libc/src/file/default_streams.c
static int DebugOutPurge(struct __libc_file_stream *_file) {
    struct DebugOutStream *file = (struct DebugOutStream *) _file;

    if(file->bufUsed) {
        memset(file->buf, 0, file->bufUsed);
        file->bufUsed = 0;
    }

    return 0;
}
/**
 * Discards all data in the write buffer of the stream.
 */
Discards all data in the write buffer of the stream.
Discards all data in the write buffer of the stream .
static int DebugOutPurge(struct __libc_file_stream *_file) {
    struct DebugOutStream *file = (struct DebugOutStream *) _file;
    if(file->bufUsed) {
        memset(file->buf, 0, file->bufUsed);
        file->bufUsed = 0;
    }
    return 0;
}
static int DebugOutPurge ( struct __libc_file_stream * _file ) { struct DebugOutStream * file = ( struct DebugOutStream * ) _file ; if ( file -> bufUsed ) { memset ( file -> buf , 0 , file -> bufUsed ) ; file -> bufUsed = 0 ; } return 0 ; }
Discards all data in the write buffer of the stream.
Discards all data in the write buffer of the stream .