mirror of
https://github.com/reactos/reactos.git
synced 2025-08-02 05:55:42 +00:00
[CMAKE]
Sync trunk up to r50477. svn path=/branches/cmake-bringup/; revision=50504
This commit is contained in:
commit
e2b7eacdd5
162 changed files with 4613 additions and 6228 deletions
|
@ -6,32 +6,9 @@
|
|||
* PROGRAMMER: Timo Kreuzer
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdarg.h>
|
||||
#define _sxprintf _vsnwprintf
|
||||
#define USE_COUNT 1
|
||||
#define USE_VARARGS 1
|
||||
#define _UNICODE
|
||||
|
||||
int _cdecl wstreamout(FILE *stream, const wchar_t *format, va_list argptr);
|
||||
|
||||
int
|
||||
__cdecl
|
||||
_vsnwprintf(
|
||||
wchar_t *buffer,
|
||||
size_t count,
|
||||
const wchar_t *format,
|
||||
va_list argptr)
|
||||
{
|
||||
int result;
|
||||
FILE stream;
|
||||
|
||||
stream._base = (char*)buffer;
|
||||
stream._ptr = stream._base;
|
||||
stream._bufsiz = count * sizeof(wchar_t);
|
||||
stream._cnt = stream._bufsiz;
|
||||
stream._flag = _IOSTRG | _IOWRT;
|
||||
stream._tmpfname = 0;
|
||||
stream._charbuf = 0;
|
||||
|
||||
result = wstreamout(&stream, format, argptr);
|
||||
*(wchar_t*)stream._ptr = L'\0';
|
||||
|
||||
return result;
|
||||
}
|
||||
#include "_sxprintf.c"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue