msvcrt: Implemented _cputws.

oldstable
Eric Pouech 2010-11-02 22:03:28 +01:00 committed by Alexandre Julliard
parent d36cfcf48a
commit f8f7b2898c
7 changed files with 22 additions and 6 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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