Back to index

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

Go to the source code of this file.

Functions

int fputws (wchar_t *str, _IO_FILE *fp) const

Function Documentation

int fputws ( wchar_t *  str,
_IO_FILE fp 
) const

Definition at line 33 of file iofputws.c.

{
  _IO_size_t len = __wcslen (str);
  int result = EOF;
  CHECK_FILE (fp, EOF);
  _IO_acquire_lock (fp);
  if (_IO_fwide (fp, 1) == 1
      && _IO_sputn (fp, (char *) str, len) == len)
    result = 1;
  _IO_release_lock (fp);
  return result;
}

Here is the call graph for this function:

Here is the caller graph for this function: