Back to index

glibc  2.9
Functions
__fpurge.c File Reference
#include <stdio_ext.h>
#include "libioP.h"

Go to the source code of this file.

Functions

void __fpurge (FILE *fp)

Function Documentation

void __fpurge ( FILE fp)

Definition at line 23 of file __fpurge.c.

{
  if (fp->_mode > 0)
    {
      /* Wide-char stream.  */
      if (_IO_in_backup (fp))
       INTUSE(_IO_free_wbackup_area) (fp);

      fp->_wide_data->_IO_read_end = fp->_wide_data->_IO_read_ptr;
      fp->_wide_data->_IO_write_ptr = fp->_wide_data->_IO_write_base;
    }
  else
    {
      /* Byte stream.  */
      if (_IO_in_backup (fp))
       INTUSE(_IO_free_backup_area) (fp);

      fp->_IO_read_end = fp->_IO_read_ptr;
      fp->_IO_write_ptr = fp->_IO_write_base;
    }
}

Here is the call graph for this function:

Here is the caller graph for this function: