Back to index

glibc  2.9
fxprintf.c File Reference
#include <assert.h>
#include <ctype.h>
#include <stdarg.h>
#include <stdio.h>
#include <wchar.h>
#include <string.h>
#include <libioP.h>

Go to the source code of this file.


int __fxprintf (FILE *fp, const char *fmt,...)

Function Documentation

int __fxprintf ( FILE fp,
const char *  fmt,

Definition at line 30 of file fxprintf.c.

  if (fp == NULL)
    fp = stderr;

  va_list ap;
  va_start (ap, fmt);

  int res;
  if (_IO_fwide (fp, 0) > 0)
      size_t len = strlen (fmt) + 1;
      wchar_t wfmt[len];
      for (size_t i = 0; i < len; ++i)
         assert (isascii (fmt[i]));
         wfmt[i] = fmt[i];
      res = __vfwprintf (fp, wfmt, ap);
    res = INTUSE(_IO_vfprintf) (fp, fmt, ap);

  va_end (ap);

  return res;

Here is the call graph for this function: