xref: /reactos/sdk/lib/crt/string/strupr.c (revision 8a978a17)
1 /*
2  * The C RunTime DLL
3  *
4  * Implements C run-time functionality as known from UNIX.
5  *
6  * Copyright 1996,1998 Marcus Meissner
7  * Copyright 1996 Jukka Iivonen
8  * Copyright 1997 Uwe Bonnes
9  */
10 
11 #include <precomp.h>
12 
13 /*
14  * @implemented
15  */
16 char * CDECL _strupr(char *x)
17 {
18 	char  *y=x;
19 	char ch, upper;
20 
21 	while (*y) {
22 		ch = *y;
23 		upper = toupper(ch);
24 		if (ch != upper)
25 			*y = upper;
26 		y++;
27 	}
28 	return x;
29 }
30