ReactOS
0.4.16-dev-1025-gd3456f5
Toggle main menu visibility
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
Functions
_
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
w
Variables
_
c
d
e
f
g
h
i
l
m
n
o
p
s
t
u
x
Typedefs
_
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
w
x
Enumerations
_
a
b
c
d
f
i
l
m
o
p
s
t
w
x
Enumerator
a
b
c
d
e
f
g
h
i
m
n
o
p
r
s
t
u
v
w
x
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
_
a
b
c
d
e
f
h
i
k
l
m
n
o
p
r
s
t
u
v
w
z
Enumerator
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Related Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
v
x
Files
File List
File Members
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Examples
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
*/
8
int
CDECL
_cputs
(
const
char
*
str
)
9
{
10
DWORD
count
;
11
int
len
,
retval
= -1;
12
#ifdef __REACTOS__
/* r54651 */
13
HANDLE
MSVCRT_console_out =
GetStdHandle
(
STD_OUTPUT_HANDLE
);
14
#endif
15
16
if
(!
MSVCRT_CHECK_PMT
(
str
!=
NULL
))
return
-1;
17
len
=
strlen
(
str
);
18
19
#ifndef __REACTOS__
/* r54651 */
20
LOCK_CONSOLE;
21
#endif
22
if
(
WriteConsoleA
(MSVCRT_console_out,
str
,
len
, &
count
,
NULL
)
23
&&
count
==
len
)
24
retval
= 0;
25
#ifndef __REACTOS__
/* r54651 */
26
UNLOCK_CONSOLE;
27
#endif
28
return
retval
;
29
}
strlen
ACPI_SIZE strlen(const char *String)
Definition:
utclib.c:269
GetStdHandle
HANDLE WINAPI GetStdHandle(IN DWORD nStdHandle)
Definition:
console.c:203
_cputs
int CDECL _cputs(const char *str)
Definition:
cputs.c:8
NULL
#define NULL
Definition:
types.h:112
CDECL
#define CDECL
Definition:
compat.h:29
WriteConsoleA
BOOL WINAPI DECLSPEC_HOTPATCH WriteConsoleA(IN HANDLE hConsoleOutput, IN CONST VOID *lpBuffer, IN DWORD nNumberOfCharsToWrite, OUT LPDWORD lpNumberOfCharsWritten, LPVOID lpReserved)
Definition:
readwrite.c:1468
DWORD
unsigned long DWORD
Definition:
ntddk_ex.h:95
count
GLuint GLuint GLsizei count
Definition:
gl.h:1545
len
GLenum GLsizei len
Definition:
glext.h:6722
void
Definition:
nsiface.idl:2307
MSVCRT_CHECK_PMT
#define MSVCRT_CHECK_PMT(x)
Definition:
mbstowcs_s.c:26
str
const WCHAR * str
Definition:
rpc_transport.c:2724
retval
int retval
Definition:
wcstombs.cpp:91
STD_OUTPUT_HANDLE
#define STD_OUTPUT_HANDLE
Definition:
winbase.h:294
sdk
lib
crt
conio
cputs.c
Generated on Tue Apr 22 2025 06:15:07 for ReactOS by
1.9.6