dtinfo other files
[oweals/cde.git] / cde / lib / DtSearch / strupr.c
1 /*
2  * CDE - Common Desktop Environment
3  *
4  * Copyright (c) 1993-2012, The Open Group. All rights reserved.
5  *
6  * These libraries and programs are free software; you can
7  * redistribute them and/or modify them under the terms of the GNU
8  * Lesser General Public License as published by the Free Software
9  * Foundation; either version 2 of the License, or (at your option)
10  * any later version.
11  *
12  * These libraries and programs are distributed in the hope that
13  * they will be useful, but WITHOUT ANY WARRANTY; without even the
14  * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15  * PURPOSE. See the GNU Lesser General Public License for more
16  * details.
17  *
18  * You should have received a copy of the GNU Lesser General Public
19  * License along with these librararies and programs; if not, write
20  * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
21  * Floor, Boston, MA 02110-1301 USA
22  */
23 /*
24  *   COMPONENT_NAME: austext
25  *
26  *   FUNCTIONS: strupr
27  *
28  *   ORIGINS: 27
29  *
30  *
31  *   (C) COPYRIGHT International Business Machines Corp. 1992,1995
32  *   All Rights Reserved
33  *   Licensed Materials - Property of IBM
34  *   US Government Users Restricted Rights - Use, duplication or
35  *   disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
36  */
37 /******************************* STRUPR.C ***************************
38  * $XConsortium: strupr.c /main/3 1996/05/07 13:48:29 drk $
39  * String function that converts all chars to uppercase.
40  * Same as DOS function with same name.  Formerly in fzansi.c.
41  *
42  * $Log$
43  * Revision 2.2  1995/10/26  14:31:18  miker
44  * Added prolog.
45  *
46  * Revision 2.1  1995/09/22  22:10:39  miker
47  * Freeze DtSearch 0.1, AusText 2.1.8
48  *
49  * Revision 1.1  1995/09/05  17:50:11  miker
50  * Initial revision
51  */
52 #include <ctype.h>
53
54 char    *strupr (char *s)
55 {
56     char        *t = s;
57     while (*t != 0) {
58         *t = toupper(*t);
59         t++;
60     }
61     return s;
62 }
63