Back to index

glibc  2.9
Functions
iofflush.c File Reference
#include "libioP.h"
#include <stdio.h>

Go to the source code of this file.

Functions

int _IO_fflush (_IO_FILE *fp)

Function Documentation

int _IO_fflush ( _IO_FILE fp)

Definition at line 33 of file iofflush.c.

{
  if (fp == NULL)
    return INTUSE(_IO_flush_all) ();
  else
    {
      int result;
      CHECK_FILE (fp, EOF);
      _IO_acquire_lock (fp);
      result = _IO_SYNC (fp) ? EOF : 0;
      _IO_release_lock (fp);
      return result;
    }
}

Here is the call graph for this function: