Back to index

glibc  2.9
Functions
ioungetc.c File Reference
#include "libioP.h"

Go to the source code of this file.

Functions

int _IO_ungetc (int c, _IO_FILE *fp)

Function Documentation

int _IO_ungetc ( int  c,
_IO_FILE fp 
)

Definition at line 31 of file ioungetc.c.

{
  int result;
  CHECK_FILE (fp, EOF);
  if (c == EOF)
    return EOF;
  _IO_acquire_lock (fp); 
  result = INTUSE(_IO_sputbackc) (fp, (unsigned char) c);
  _IO_release_lock (fp);
  return result;
}

Here is the call graph for this function: