ReactOS
0.4.16-dev-1972-gf20c09f
_strupr_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 _strupr
5
* COPYRIGHT: Copyright 2025 Timo Kreuzer <timo.kreuzer@reactos.org>
6
*/
7
8
#include "precomp.h"
9
10
char
*
11
__cdecl
12
_strupr
(
13
_Inout_z_
char
*
_String
)
14
{
15
char
ch, *
p
;
16
17
if
(
_String
==
NULL
)
18
{
19
_invalid_parameter
(
NULL
,
L
"_strupr"
,
_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
}
__cdecl
#define __cdecl
Definition:
accygwin.h:79
_String
_String
Definition:
corecrt_wstring.h:345
NULL
#define NULL
Definition:
types.h:112
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
_invalid_parameter
void _invalid_parameter(const wchar_t *expression, const wchar_t *function, const wchar_t *file, unsigned int line, uintptr_t pReserved)
Definition:
_invalid_parameter.c:22
_strupr
_strupr
Definition:
string.h:453
_CRT_WIDE
#define _CRT_WIDE(_String)
Definition:
vcruntime.h:20
sdk
lib
crt
string
_strupr_nt.c
Generated on Fri Dec 12 2025 06:15:48 for ReactOS by
1.9.6