2 * Copyright 2008, Ingo Weinhold, ingo_weinhold@gmx.de.
3 * Distributed under the terms of the MIT License.
14 // purge read and write buffers
15 stream
->_IO_read_end
= stream
->_IO_read_ptr
;
16 stream
->_IO_write_ptr
= stream
->_IO_write_base
;
19 if (stream
->_IO_save_base
!= NULL
) {
20 free(stream
->_IO_save_base
);
21 stream
->_IO_save_base
= NULL
;
29 __fpurge(FILE* stream
)