mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 21:25:43 +00:00
[UCRT] Import Microsoft.Windows.SDK.CRTSource version 10.0.22621.3
Imported from https://www.nuget.org/packages/Microsoft.Windows.SDK.CRTSource/10.0.22621.3 License: MIT
This commit is contained in:
parent
f1b60c66f0
commit
04e0dc4a7a
568 changed files with 115483 additions and 0 deletions
104
sdk/lib/ucrt/conio/cprintf.cpp
Normal file
104
sdk/lib/ucrt/conio/cprintf.cpp
Normal file
|
@ -0,0 +1,104 @@
|
|||
//
|
||||
// cprintf.cpp
|
||||
//
|
||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
//
|
||||
// The standard output functions, which perform formatted output to the
|
||||
// console.
|
||||
//
|
||||
#include <corecrt_internal_stdio_output.h>
|
||||
|
||||
|
||||
using namespace __crt_stdio_output;
|
||||
|
||||
|
||||
|
||||
template <template <typename, typename> class Base, typename Character>
|
||||
static int __cdecl common_vcprintf(
|
||||
unsigned __int64 const options,
|
||||
Character const* const format,
|
||||
__crt_cached_ptd_host& ptd,
|
||||
va_list const arglist
|
||||
)
|
||||
{
|
||||
typedef output_processor<
|
||||
Character,
|
||||
console_output_adapter<Character>,
|
||||
Base<Character, console_output_adapter<Character>>
|
||||
> processor_type;
|
||||
|
||||
processor_type processor(
|
||||
console_output_adapter<Character>(),
|
||||
options,
|
||||
format,
|
||||
ptd,
|
||||
arglist);
|
||||
|
||||
return processor.process();
|
||||
}
|
||||
|
||||
extern "C" int __cdecl __conio_common_vcprintf(
|
||||
unsigned __int64 const options,
|
||||
char const* const format,
|
||||
_locale_t const locale,
|
||||
va_list const arglist
|
||||
)
|
||||
{
|
||||
__crt_cached_ptd_host ptd{locale};
|
||||
return common_vcprintf<standard_base>(options, format, ptd, arglist);
|
||||
}
|
||||
|
||||
extern "C" int __cdecl __conio_common_vcprintf_s(
|
||||
unsigned __int64 const options,
|
||||
char const* const format,
|
||||
_locale_t const locale,
|
||||
va_list const arglist
|
||||
)
|
||||
{
|
||||
__crt_cached_ptd_host ptd{locale};
|
||||
return common_vcprintf<format_validation_base>(options, format, ptd, arglist);
|
||||
}
|
||||
|
||||
extern "C" int __cdecl __conio_common_vcprintf_p(
|
||||
unsigned __int64 const options,
|
||||
char const* const format,
|
||||
_locale_t const locale,
|
||||
va_list const arglist
|
||||
)
|
||||
{
|
||||
__crt_cached_ptd_host ptd{locale};
|
||||
return common_vcprintf<positional_parameter_base>(options, format, ptd, arglist);
|
||||
}
|
||||
|
||||
extern "C" int __cdecl __conio_common_vcwprintf(
|
||||
unsigned __int64 const options,
|
||||
wchar_t const* const format,
|
||||
_locale_t const locale,
|
||||
va_list const arglist
|
||||
)
|
||||
{
|
||||
__crt_cached_ptd_host ptd{locale};
|
||||
return common_vcprintf<standard_base>(options, format, ptd, arglist);
|
||||
}
|
||||
|
||||
extern "C" int __cdecl __conio_common_vcwprintf_s(
|
||||
unsigned __int64 const options,
|
||||
wchar_t const* const format,
|
||||
_locale_t const locale,
|
||||
va_list const arglist
|
||||
)
|
||||
{
|
||||
__crt_cached_ptd_host ptd{locale};
|
||||
return common_vcprintf<format_validation_base>(options, format, ptd, arglist);
|
||||
}
|
||||
|
||||
extern "C" int __cdecl __conio_common_vcwprintf_p(
|
||||
unsigned __int64 const options,
|
||||
wchar_t const* const format,
|
||||
_locale_t const locale,
|
||||
va_list const arglist
|
||||
)
|
||||
{
|
||||
__crt_cached_ptd_host ptd{locale};
|
||||
return common_vcprintf<positional_parameter_base>(options, format, ptd, arglist);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue