Back to index

glibc  2.9
Functions
ioungetwc.c File Reference
#include "libioP.h"
#include <wchar.h>

Go to the source code of this file.

Functions

wint_t ungetwc (wint_t c, _IO_FILE *fp)

Function Documentation

wint_t ungetwc ( wint_t  c,
_IO_FILE fp 
)

Definition at line 33 of file ioungetwc.c.

{
  wint_t result;
  CHECK_FILE (fp, WEOF);
  _IO_acquire_lock (fp);
  _IO_fwide (fp, 1);
  if (c == WEOF)
    result = WEOF;
  else
    result = INTUSE(_IO_sputbackwc) (fp, c);
  _IO_release_lock (fp);
  return result;
}

Here is the call graph for this function:

Here is the caller graph for this function: