libDtSearch: Coverity 86579
[oweals/cde.git] / cde / lib / csa / ansi_c.h
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 libraries 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 /* $XConsortium: ansi_c.h /main/1 1996/04/21 19:21:28 drk $
24  *
25  * (c) Copyright 1996 Digital Equipment Corporation.
26  * (c) Copyright 1993,1994,1996 Hewlett-Packard Company.
27  * (c) Copyright 1993,1994,1996 International Business Machines Corp.
28  * (c) Copyright 1993,1994,1996 Sun Microsystems, Inc.
29  * (c) Copyright 1993,1994,1996 Novell, Inc. 
30  * (c) Copyright 1996 FUJITSU LIMITED.
31  * (c) Copyright 1996 Hitachi.
32  */
33
34 #ifndef _ANSI_C_H
35 #define _ANSI_C_H
36
37 #include <stdlib.h>
38
39 /*
40 **  For all function declarations, if ANSI, then use a prototype
41 */
42 #if  defined(__STDC__)
43 #define P(args)  args
44 #else
45 #define P(args)  ()
46 #endif
47
48 #ifdef SunOS
49 extern char     *fconvert       P((double, int, int*, int*, char*));
50 extern int      isascii         P((int));
51 extern int      kill            P((long, int));
52 extern char     *mktemp         P((char*));
53 extern int      strcasecmp      P((const char*, const char*));
54 extern int      strncasecmp     P((const char*, const char*, size_t));
55 extern char     *strdup         P((const char*));
56 #endif
57
58 #ifdef NEED_STRCASECMP
59 int     strcasecmp      P((const char*, const char*));
60 int     strncasecmp     P((const char*, const char*, size_t));
61 #endif
62
63 #endif