aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/mingw/stdio/ucrt_fprintf.c
blob: 0b06b14e9653a4dca58436e30cc2ad2feb9a5f2b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/**
 * This file has no copyright assigned and is placed in the Public Domain.
 * This file is part of the mingw-w64 runtime package.
 * No warranty is given; refer to the file DISCLAIMER.PD within this package.
 */

#undef __MSVCRT_VERSION__
#define _UCRT
#include <stdio.h>

int __cdecl fprintf(FILE * __restrict__ _File,const char * __restrict__ _Format,...)
{
  __builtin_va_list ap;
  int ret;
  __builtin_va_start(ap, _Format);
  ret = __stdio_common_vfprintf(_CRT_INTERNAL_LOCAL_PRINTF_OPTIONS, _File, _Format, NULL, ap);
  __builtin_va_end(ap);
  return ret;
}