mirror of
https://github.com/reactos/reactos.git
synced 2024-11-19 05:22:59 +00:00
28 lines
625 B
C
28 lines
625 B
C
/*
|
|
* COPYRIGHT: GNU GPL, see COPYING in the top level directory
|
|
* PROJECT: ReactOS crt library
|
|
* FILE: lib/sdk/crt/printf/_vscprintf.c
|
|
* PURPOSE: Implementation of _vscprintf
|
|
*/
|
|
|
|
#include <stdio.h>
|
|
#include <stdarg.h>
|
|
|
|
int __cdecl streamout(FILE *stream, const char *format, va_list argptr);
|
|
|
|
int
|
|
_vscprintf(
|
|
const char *format,
|
|
va_list argptr)
|
|
{
|
|
int ret;
|
|
FILE* nulfile = fopen("nul", "w");
|
|
if(nulfile == NULL)
|
|
{
|
|
/* This should never happen... */
|
|
return -1;
|
|
}
|
|
ret = streamout(nulfile, format, argptr);
|
|
fclose(nulfile);
|
|
return ret;
|
|
}
|