Commit f8f7b289 authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard

msvcrt: Implemented _cputws.

parent d36cfcf4
......@@ -551,7 +551,7 @@
@ stub _cprintf_s
@ stub _cprintf_s_l
@ cdecl _cputs(str) msvcrt._cputs
@ stub _cputws
@ cdecl _cputws(wstr) msvcrt._cputws
@ cdecl _creat(str long) msvcrt._creat
@ cdecl _create_locale(long str) msvcrt._create_locale
@ stub _crt_debugger_hook
......
......@@ -261,7 +261,7 @@
@ cdecl _copysign( double double ) msvcrt._copysign
@ varargs _cprintf(str) msvcrt._cprintf
@ cdecl _cputs(str) msvcrt._cputs
@ stub _cputws
@ cdecl _cputws(wstr) msvcrt._cputws
@ cdecl _creat(str long) msvcrt._creat
@ varargs _cscanf(str) msvcrt._cscanf
@ cdecl _ctime64(ptr) msvcrt._ctime64
......
......@@ -256,7 +256,7 @@
@ cdecl _copysign( double double ) msvcrt._copysign
@ varargs _cprintf(str) msvcrt._cprintf
@ cdecl _cputs(str) msvcrt._cputs
@ stub _cputws
@ cdecl _cputws(wstr) msvcrt._cputws
@ cdecl _creat(str long) msvcrt._creat
@ varargs _cscanf(str) msvcrt._cscanf
@ cdecl _ctime64(ptr) msvcrt._ctime64
......
......@@ -390,7 +390,7 @@
@ stub _cprintf_s
@ stub _cprintf_s_l
@ cdecl _cputs(str) msvcrt._cputs
@ stub _cputws
@ cdecl _cputws(wstr) msvcrt._cputws
@ cdecl _creat(str long) msvcrt._creat
@ cdecl _create_locale(long str) msvcrt._create_locale
@ stub _crt_debugger_hook
......
......@@ -382,7 +382,7 @@
@ stub _cprintf_s
@ stub _cprintf_s_l
@ cdecl _cputs(str) msvcrt._cputs
@ stub _cputws
@ cdecl _cputws(wstr) msvcrt._cputws
@ cdecl _creat(str long) msvcrt._creat
@ cdecl _create_locale(long str) msvcrt._create_locale
@ stub _crt_debugger_hook
......
......@@ -77,6 +77,22 @@ int CDECL _cputs(const char* str)
return retval;
}
/*********************************************************************
* _cputws (MSVCRT.@)
*/
int CDECL _cputws(const MSVCRT_wchar_t* str)
{
DWORD count;
int retval = MSVCRT_EOF;
LOCK_CONSOLE;
if (WriteConsoleW(MSVCRT_console_out, str, lstrlenW(str), &count, NULL)
&& count == 1)
retval = 0;
UNLOCK_CONSOLE;
return retval;
}
#define NORMAL_CHAR 0
#define ALT_CHAR 1
#define CTRL_CHAR 2
......
......@@ -346,7 +346,7 @@
# stub _cprintf_s
# stub _cprintf_s_l
@ cdecl _cputs(str)
# stub _cputws
@ cdecl _cputws(wstr)
@ cdecl _creat(str long) MSVCRT__creat
# stub _crtAssertBusy
# stub _crtBreakAlloc
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment