ReactOS 0.4.15-dev-8419-g7f0e8a3
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
16int __cdecl wstreamout(FILE *stream, const wchar_t *format, va_list argptr);
17
18int
20vfwprintf_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}
#define EINVAL
Definition: acclib.h:90
#define __cdecl
Definition: accygwin.h:79
char * va_list
Definition: acmsvcex.h:78
#define NULL
Definition: types.h:112
GLint GLint GLsizei GLsizei GLsizei GLint GLenum format
Definition: gl.h:1546
_CRTIMP void __cdecl _unlock_file(_Inout_ FILE *_File)
_CRTIMP void __cdecl _lock_file(_Inout_ FILE *_File)
#define MSVCRT_CHECK_PMT(x)
Definition: mbstowcs_s.c:26
errno_t __cdecl _set_errno(_In_ int _Value)
Definition: fci.c:127
Definition: parse.h:23
int __cdecl vfwprintf_s(FILE *file, const wchar_t *format, va_list argptr)
Definition: vfwprintf_s.c:20
int __cdecl wstreamout(FILE *stream, const wchar_t *format, va_list argptr)
int ret