mirror of
https://github.com/reactos/reactos.git
synced 2024-07-03 03:04:22 +00:00
[CRT] Implement the missing CRT _sc(w)printf() functions. CORE-14497
This commit is contained in:
parent
fd6e2d752d
commit
1a31889801
|
@ -601,8 +601,8 @@
|
||||||
@ cdecl -arch=i386 _safe_fprem()
|
@ cdecl -arch=i386 _safe_fprem()
|
||||||
@ cdecl -arch=i386 _safe_fprem1()
|
@ cdecl -arch=i386 _safe_fprem1()
|
||||||
@ cdecl _scalb(double long)
|
@ cdecl _scalb(double long)
|
||||||
# stub _scprintf
|
@ varargs _scprintf(str)
|
||||||
# stub _scwprintf
|
@ varargs _scwprintf(wstr)
|
||||||
@ cdecl _searchenv(str str ptr)
|
@ cdecl _searchenv(str str ptr)
|
||||||
@ stdcall -i386 _seh_longjmp_unwind(ptr)
|
@ stdcall -i386 _seh_longjmp_unwind(ptr)
|
||||||
# stub _set_SSE2_enable
|
# stub _set_SSE2_enable
|
||||||
|
|
|
@ -135,6 +135,8 @@ list(APPEND CRT_SOURCE
|
||||||
misc/tls.c
|
misc/tls.c
|
||||||
printf/_cprintf.c
|
printf/_cprintf.c
|
||||||
printf/_cwprintf.c
|
printf/_cwprintf.c
|
||||||
|
printf/_scprintf.c
|
||||||
|
printf/_scwprintf.c
|
||||||
printf/_snprintf.c
|
printf/_snprintf.c
|
||||||
printf/_snprintf_s.c
|
printf/_snprintf_s.c
|
||||||
printf/_snwprintf.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…
Reference in a new issue