mirror of
https://github.com/reactos/reactos.git
synced 2025-07-31 19:21:38 +00:00
[CRT] Implement the missing CRT _sc(w)printf() functions. CORE-14497
This commit is contained in:
parent
fd6e2d752d
commit
1a31889801
4 changed files with 54 additions and 2 deletions
|
@ -135,6 +135,8 @@ list(APPEND CRT_SOURCE
|
|||
misc/tls.c
|
||||
printf/_cprintf.c
|
||||
printf/_cwprintf.c
|
||||
printf/_scprintf.c
|
||||
printf/_scwprintf.c
|
||||
printf/_snprintf.c
|
||||
printf/_snprintf_s.c
|
||||
printf/_snwprintf.c
|
||||
|
|
25
sdk/lib/crt/printf/_scprintf.c
Normal file
25
sdk/lib/crt/printf/_scprintf.c
Normal file
|
@ -0,0 +1,25 @@
|
|||
/*
|
||||
* COPYRIGHT: GNU GPL, see COPYING in the top level directory
|
||||
* PROJECT: ReactOS crt library
|
||||
* FILE: lib/sdk/crt/printf/_scprintf.c
|
||||
* PURPOSE: Implementation of _scprintf
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdarg.h>
|
||||
|
||||
int
|
||||
__cdecl
|
||||
_scprintf(
|
||||
const char *format,
|
||||
...)
|
||||
{
|
||||
int len;
|
||||
va_list args;
|
||||
|
||||
va_start(args, format);
|
||||
len = _vscprintf(format, args);
|
||||
va_end(args);
|
||||
|
||||
return len;
|
||||
}
|
25
sdk/lib/crt/printf/_scwprintf.c
Normal file
25
sdk/lib/crt/printf/_scwprintf.c
Normal file
|
@ -0,0 +1,25 @@
|
|||
/*
|
||||
* COPYRIGHT: GNU GPL, see COPYING in the top level directory
|
||||
* PROJECT: ReactOS crt library
|
||||
* FILE: lib/sdk/crt/printf/_scwprintf.c
|
||||
* PURPOSE: Implementation of _scwprintf
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdarg.h>
|
||||
|
||||
int
|
||||
__cdecl
|
||||
_scwprintf(
|
||||
const wchar_t *format,
|
||||
...)
|
||||
{
|
||||
int len;
|
||||
va_list args;
|
||||
|
||||
va_start(args, format);
|
||||
len = _vscwprintf(format, args);
|
||||
va_end(args);
|
||||
|
||||
return len;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue