ReactOS
0.4.16-dev-2104-gb84fa49
_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
}
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
_String
_String
Definition:
corecrt_wstring.h:345
_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 Wed Jan 7 2026 06:15:24 for ReactOS by
1.9.6