Back to index

glibc  2.9
Functions
fwide.c File Reference
#include <libioP.h>
#include <stdio.h>
#include <wchar.h>

Go to the source code of this file.

Functions

int fwide (_IO_FILE *fp, int mode)

Function Documentation

int fwide ( _IO_FILE fp,
int  mode 
)

Definition at line 33 of file fwide.c.

{
  int result;

  /* Normalize the value.  */
  mode = mode < 0 ? -1 : (mode == 0 ? 0 : 1);

  if (mode == 0 || fp->_mode != 0)
    /* The caller simply wants to know about the current orientation
       or the orientation already has been determined.  */
    return fp->_mode;

  _IO_acquire_lock (fp);
  result = _IO_fwide (fp, mode);
  _IO_release_lock (fp);

  return result;
}

Here is the call graph for this function:

Here is the caller graph for this function: