]> git.ipfire.org Git - thirdparty/cups.git/blame - cups/string.h
Merge changes from 1.1 tree.
[thirdparty/cups.git] / cups / string.h
CommitLineData
3b960317 1/*
b5cb0608 2 * "$Id: string.h,v 1.7.2.1 2001/05/13 18:38:05 mike Exp $"
3b960317 3 *
4 * String definitions for the Common UNIX Printing System (CUPS).
5 *
d2935a0f 6 * Copyright 1997-2001 by Easy Software Products.
3b960317 7 *
8 * These coded instructions, statements, and computer programs are the
9 * property of Easy Software Products and are protected by Federal
10 * copyright law. Distribution and use rights are outlined in the file
11 * "LICENSE.txt" which should have been included with this file. If this
12 * file is missing or damaged please contact Easy Software Products
13 * at:
14 *
15 * Attn: CUPS Licensing Information
16 * Easy Software Products
8784b6a6 17 * 44141 Airport View Drive, Suite 204
3b960317 18 * Hollywood, Maryland 20636-3111 USA
19 *
20 * Voice: (301) 373-9603
21 * EMail: cups-info@cups.org
22 * WWW: http://www.cups.org
23 */
24
25#ifndef _CUPS_STRING_H_
26# define _CUPS_STRING_H_
27
28/*
29 * Include necessary headers...
30 */
31
3095105a 32# include <stdio.h>
33# include <stdarg.h>
3b960317 34# include <config.h>
b5cb0608 35
36# ifdef HAVE_STRING_H
37# include <string.h>
38# endif /* HAVE_STRING_H */
39
40# ifdef HAVE_STRINGS_H
41# include <strings.h>
42# endif /* HAVE_STRINGS_H */
3b960317 43
44
45/*
46 * Stuff for WIN32 and OS/2...
47 */
48
49# if defined(WIN32) || defined(__EMX__)
50# define strcasecmp stricmp
51# define strncasecmp strnicmp
52# endif /* WIN32 || __EMX__ */
53
54
5d14f780 55/*
56 * C++ magic...
57 */
58
59# ifdef __cplusplus
60extern "C" {
61# endif /* __cplusplus */
62
63
3b960317 64/*
65 * Prototypes...
66 */
67
68# ifndef HAVE_STRDUP
69extern char *strdup(const char *);
70# endif /* !HAVE_STRDUP */
71
72# ifndef HAVE_STRCASECMP
73extern int strcasecmp(const char *, const char *);
74# endif /* !HAVE_STRCASECMP */
75
76# ifndef HAVE_STRNCASECMP
77extern int strncasecmp(const char *, const char *, size_t n);
78# endif /* !HAVE_STRNCASECMP */
79
3095105a 80# ifndef HAVE_SNPRINTF
8ba4ce72 81extern int snprintf(char *, size_t, const char *, ...);
3095105a 82# endif /* !HAVE_SNPRINTF */
83
84# ifndef HAVE_VSNPRINTF
8ba4ce72 85extern int vsnprintf(char *, size_t, const char *, va_list);
3095105a 86# endif /* !HAVE_VSNPRINTF */
87
5d14f780 88
89/*
90 * C++ magic...
91 */
92
93# ifdef __cplusplus
94}
95# endif /* __cplusplus */
96
3b960317 97#endif /* !_CUPS_STRING_H_ */
98
99/*
b5cb0608 100 * End of "$Id: string.h,v 1.7.2.1 2001/05/13 18:38:05 mike Exp $".
3b960317 101 */