Create a branch for Aleksandar Andrejevic for his work on NTVDM. See http://jira.reactos.org/browse/CORE-7250 for more details.

svn path=/branches/ntvdm/; revision=59241
This commit is contained in:
Hermès Bélusca-Maïto 2013-06-16 22:01:41 +00:00
parent 3e3200acef
commit 4f0b8d3db0
20620 changed files with 0 additions and 1232833 deletions

View file

@ -0,0 +1,33 @@
/*
* COPYRIGHT: GNU GPL, see COPYING in the top level directory
* PROJECT: ReactOS crt library
* FILE: lib/sdk/crt/printf/vfprintf_s.c
* PURPOSE: Implementation of vfprintf_s
* PROGRAMMER: Samuel Serapión
*/
#define MINGW_HAS_SECURE_API 1
#include <stdio.h>
#include <stdarg.h>
#include <internal/safecrt.h>
int _cdecl streamout(FILE *stream, const char *format, va_list argptr);
int
_cdecl
vfprintf_s(FILE* file, const char *format, va_list argptr)
{
int result;
if(!MSVCRT_CHECK_PMT(format != NULL)) {
_set_errno(EINVAL);
return -1;
}
_lock_file(file);
result = streamout(file, format, argptr);
_unlock_file(file);
return result;
}