ReactOS  0.4.15-dev-1150-g593bcce
vfprintf_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/vfprintf_s.c
5  * PURPOSE: Implementation of vfprintf_s
6  * PROGRAMMER: Samuel Serapión
7  */
8 
9 #define MINGW_HAS_SECURE_API 1
10 
11 #include <stdio.h>
12 #include <stdarg.h>
13 #include <internal/safecrt.h>
14 
15 int __cdecl streamout(FILE *stream, const char *format, va_list argptr);
16 
17 int
18 __cdecl
19 vfprintf_s(FILE* file, const char *format, va_list argptr)
20 {
21  int result;
22 
23  if(!MSVCRT_CHECK_PMT(format != NULL)) {
25  return -1;
26  }
27 
29  result = streamout(file, format, argptr);
31 
32  return result;
33 }
errno_t __cdecl _set_errno(_In_ int _Value)
int __cdecl streamout(FILE *stream, const char *format, va_list argptr)
Definition: streamout.c:326
#define __cdecl
Definition: accygwin.h:79
Definition: arc.h:39
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
Definition: parse.h:22
#define MSVCRT_CHECK_PMT(x)
Definition: mbstowcs_s.c:26
_CRTIMP void __cdecl _lock_file(_Inout_ FILE *_File)
_CRTIMP void __cdecl _unlock_file(_Inout_ FILE *_File)
GLuint64EXT * result
Definition: glext.h:11304
int __cdecl vfprintf_s(FILE *file, const char *format, va_list argptr)
Definition: vfprintf_s.c:19
Definition: fci.c:126