mirror of
https://github.com/reactos/reactos.git
synced 2025-08-02 06:05:48 +00:00
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:
parent
3e3200acef
commit
4f0b8d3db0
20620 changed files with 0 additions and 1232833 deletions
33
lib/sdk/crt/printf/vfprintf_s.c
Normal file
33
lib/sdk/crt/printf/vfprintf_s.c
Normal 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;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue