x11gfx.hidd: support 32 bit modes
[AROS.git] / compiler / stdc / strupr.c
blobc5de2f8fe4fc28b22a76bb12486ee0385625a630
1 /*
2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
3 $Id$
5 C function strupr().
6 */
8 /*****************************************************************************
10 NAME */
11 #include <string.h>
13 char * strupr (
15 /* SYNOPSIS */
16 char * str)
18 /* FUNCTION
20 Converts a string to all upper case characters. Modifies
21 the given string.
23 INPUTS
24 str - The string to convert.
26 RESULT
27 The same string buffer is passed back with all characters converted.
29 NOTES
31 EXAMPLE
33 BUGS
35 SEE ALSO
37 INTERNALS
39 ******************************************************************************/
41 unsigned int i = 0;
42 while (str[i]) {
43 if (str[i] >= 'a' && str[i] <= 'z')
44 str[i] += ('A'-'a');
45 i++;
48 return str;
49 } /* strupr */