ReactOS  0.4.13-dev-961-g238ea69
vfwprintf_s.c
Go to the documentation of this file.
1 /*
2  * COPYRIGHT: GNU GPL, see COPYING in the top level directory
3  * PROJECT: ReactOS crt library
4  * FILE: lib/sdk/crt/printf/vfwprintf_s.c
5  * PURPOSE: Implementation of vfwprintf
6  * PROGRAMMER: Timo Kreuzer
7  * Samuel Serapión
8  */
9 
10 #define MINGW_HAS_SECURE_API 1
11 
12 #include <stdio.h>
13 #include <stdarg.h>
14 #include <internal/safecrt.h>
15 
16 int __cdecl wstreamout(FILE *stream, const wchar_t *format, va_list argptr);
17 
18 int
19 __cdecl
20 vfwprintf_s(FILE* file, const wchar_t *format, va_list argptr)
21 {
22  int ret;
23 
24  if(!MSVCRT_CHECK_PMT( file != NULL)) {
26  return -1;
27  }
28 
30  ret = wstreamout(file, format, argptr);
32 
33  return ret;
34 }
errno_t __cdecl _set_errno(_In_ int _Value)
#define __cdecl
Definition: accygwin.h:79
Definition: arc.h:39
int __cdecl vfwprintf_s(FILE *file, const wchar_t *format, va_list argptr)
Definition: vfwprintf_s.c:20
GLint GLint GLsizei GLsizei GLsizei GLint GLenum format
Definition: gl.h:1546
smooth NULL
Definition: ftsmooth.c:416
char * va_list
Definition: acmsvcex.h:78
int ret
Definition: parse.h:22
#define MSVCRT_CHECK_PMT(x)
Definition: mbstowcs_s.c:26
int __cdecl wstreamout(FILE *stream, const wchar_t *format, va_list argptr)
_CRTIMP void __cdecl _lock_file(_Inout_ FILE *_File)
_CRTIMP void __cdecl _unlock_file(_Inout_ FILE *_File)
Definition: fci.c:126