Back to index

glibc  2.9
wprintf_chk.c File Reference
#include <stdarg.h>
#include <stdio.h>
#include <wchar.h>
#include "../libio/libioP.h"

Go to the source code of this file.


int __wprintf_chk (int flag, const wchar_t *format,...)

Function Documentation

int __wprintf_chk ( int  flag,
const wchar_t *  format,

Definition at line 28 of file wprintf_chk.c.

  va_list ap;
  int done;

  _IO_acquire_lock_clear_flags2 (stdout);
  if (flag > 0)
    stdout->_flags2 |= _IO_FLAGS2_FORTIFY;

  va_start (ap, format);
  done = _IO_vfwprintf (stdout, format, ap);
  va_end (ap);

  if (flag > 0)
    stdout->_flags2 &= ~_IO_FLAGS2_FORTIFY;
  _IO_release_lock (stdout);

  return done;