ReactOS
0.4.16-dev-2104-gb84fa49
_wcslwr_nt.c
Go to the documentation of this file.
1
/*
2
* PROJECT: ReactOS NT CRT library
3
* LICENSE: MIT (https://spdx.org/licenses/MIT)
4
* PURPOSE: Implementation of _wcslwr
5
* COPYRIGHT: Copyright 2025 Timo Kreuzer <timo.kreuzer@reactos.org>
6
*/
7
8
#include "precomp.h"
9
10
wchar_t
*
11
__cdecl
12
_wcslwr
(
13
_Inout_z_
wchar_t
*
_String
)
14
{
15
wchar_t
ch
, *
p
;
16
17
if
(
_String
==
NULL
)
18
{
19
_invalid_parameter
(
NULL
,
L
"_wcslwr"
,
_CRT_WIDE
(__FILE__), __LINE__, 0);
20
return
NULL
;
21
}
22
23
for
(
p
=
_String
; *
p
;
p
++)
24
{
25
ch
= *
p
;
26
if
((
ch
>=
'A'
) && (
ch
<=
'Z'
))
27
{
28
*
p
+=
'a'
-
'A'
;
29
}
30
}
31
32
return
_String
;
33
}
NULL
#define NULL
Definition:
types.h:112
ch
unsigned char ch[4][2]
Definition:
console.c:118
_invalid_parameter
void __cdecl _invalid_parameter(const wchar_t *expr, const wchar_t *func, const wchar_t *file, unsigned int line, uintptr_t arg)
Definition:
errno.c:461
__cdecl
#define __cdecl
Definition:
corecrt.h:121
L
#define L(x)
Definition:
resources.c:13
p
GLfloat GLfloat p
Definition:
glext.h:8902
_Inout_z_
#define _Inout_z_
Definition:
no_sal2.h:166
_wcslwr
_wcslwr
Definition:
corecrt_wstring.h:384
_String
_String
Definition:
corecrt_wstring.h:345
_CRT_WIDE
#define _CRT_WIDE(_String)
Definition:
vcruntime.h:20
sdk
lib
crt
wstring
_wcslwr_nt.c
Generated on Wed Jan 7 2026 06:15:30 for ReactOS by
1.9.6