ReactOS 0.4.16-dev-2104-gb84fa49
cputs.c
Go to the documentation of this file.
1/* Imported from msvcrt/console.c */
2
3#include <precomp.h>
4
5/*********************************************************************
6 * _cputs (MSVCRT.@)
7 */
8int CDECL _cputs(const char* str)
9{
11 int len, retval = -1;
12#ifdef __REACTOS__ /* r54651 */
14#endif
15
16 if (!MSVCRT_CHECK_PMT(str != NULL)) return -1;
17 len = strlen(str);
18
19#ifndef __REACTOS__ /* r54651 */
21#endif
23 && count == len)
24 retval = 0;
25#ifndef __REACTOS__ /* r54651 */
27#endif
28 return retval;
29}
HANDLE WINAPI GetStdHandle(IN DWORD nStdHandle)
Definition: console.c:203
int CDECL _cputs(const char *str)
Definition: cputs.c:8
#define NULL
Definition: types.h:112
#define CDECL
Definition: compat.h:29
BOOL WINAPI DECLSPEC_HOTPATCH WriteConsoleA(IN HANDLE hConsoleOutput, IN CONST VOID *lpBuffer, IN DWORD nNumberOfCharsToWrite, OUT LPDWORD lpNumberOfCharsWritten, LPVOID lpReserved)
Definition: readwrite.c:1468
static HANDLE MSVCRT_console_out
Definition: console.c:37
#define LOCK_CONSOLE
Definition: console.c:33
#define UNLOCK_CONSOLE
Definition: console.c:34
_ACRTIMP size_t __cdecl strlen(const char *)
Definition: string.c:1592
#define MSVCRT_CHECK_PMT(x)
Definition: msvcrt.h:378
unsigned long DWORD
Definition: ntddk_ex.h:95
GLuint GLuint GLsizei count
Definition: gl.h:1545
GLenum GLsizei len
Definition: glext.h:6722
const WCHAR * str
int retval
Definition: wcstombs.cpp:91
#define STD_OUTPUT_HANDLE
Definition: winbase.h:292