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
10char*
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}
#define __cdecl
Definition: accygwin.h:79
_String
#define NULL
Definition: types.h:112
#define L(x)
Definition: resources.c:13
GLfloat GLfloat p
Definition: glext.h:8902
#define _Inout_z_
Definition: no_sal2.h:166
void _invalid_parameter(const wchar_t *expression, const wchar_t *function, const wchar_t *file, unsigned int line, uintptr_t pReserved)
_strupr
Definition: string.h:453
#define _CRT_WIDE(_String)
Definition: vcruntime.h:20