blob: a4f6b4639c086adad960091efd3e356e68475223 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
#include <xplatform.h>
#include <stdarg.h>
extern "C" DLL_EXPORT void __cdecl TestVarArgs(LPWSTR formattedString, SIZE_T bufferSize, LPCWSTR format, ...)
{
va_list args;
va_start(args, format);
vswprintf_s(formattedString, bufferSize, format, args);
va_end(args);
}
extern "C" DLL_EXPORT void STDMETHODCALLTYPE TestArgIterator(LPWSTR formattedString, SIZE_T bufferSize, LPCWSTR format, va_list args)
{
vswprintf_s(formattedString, bufferSize, format, args);
}
|