]>
git.ipfire.org Git - thirdparty/cups.git/blob - cups/string.h
2 * "$Id: string.h,v 1.15 2002/12/17 18:56:43 swdev Exp $"
4 * String definitions for the Common UNIX Printing System (CUPS).
6 * Copyright 1997-2003 by Easy Software Products.
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
15 * Attn: CUPS Licensing Information
16 * Easy Software Products
17 * 44141 Airport View Drive, Suite 204
18 * Hollywood, Maryland 20636-3111 USA
20 * Voice: (301) 373-9603
21 * EMail: cups-info@cups.org
22 * WWW: http://www.cups.org
24 * This file is subject to the Apple OS-Developed Software exception.
27 #ifndef _CUPS_STRING_H_
28 # define _CUPS_STRING_H_
31 * Include necessary headers...
42 # endif /* HAVE_STRING_H */
44 # ifdef HAVE_STRINGS_H
46 # endif /* HAVE_STRINGS_H */
48 # ifdef HAVE_BSTRING_H
50 # endif /* HAVE_BSTRING_H */
54 * Stuff for WIN32 and OS/2...
57 # if defined(WIN32) || defined(__EMX__)
58 # define strcasecmp stricmp
59 # define strncasecmp strnicmp
60 # endif /* WIN32 || __EMX__ */
69 # endif /* __cplusplus */
77 extern char *cups_strdup(const char *);
78 # define strdup cups_strdup
79 # endif /* !HAVE_STRDUP */
81 # ifndef HAVE_STRCASECMP
82 extern int cups_strcasecmp(const char *, const char *);
83 # define strcasecmp cups_strcasecmp
84 # endif /* !HAVE_STRCASECMP */
86 # ifndef HAVE_STRNCASECMP
87 extern int cups_strncasecmp(const char *, const char *, size_t n
);
88 # define strncasecmp cups_strncasecmp
89 # endif /* !HAVE_STRNCASECMP */
92 extern size_t cups_strlcat(char *, const char *, size_t);
93 # define strlcat cups_strlcat
94 # endif /* !HAVE_STRLCAT */
97 extern size_t cups_strlcpy(char *, const char *, size_t);
98 # define strlcpy cups_strlcpy
99 # endif /* !HAVE_STRLCPY */
101 # ifndef HAVE_SNPRINTF
102 extern int cups_snprintf(char *, size_t, const char *, ...)
104 __attribute__ ((__format__ (__printf__
, 3, 4)))
105 # endif /* __GNUC__ */
107 # define snprintf cups_snprintf
108 # endif /* !HAVE_SNPRINTF */
110 # ifndef HAVE_VSNPRINTF
111 extern int cups_vsnprintf(char *, size_t, const char *, va_list);
112 # define vsnprintf cups_vsnprintf
113 # endif /* !HAVE_VSNPRINTF */
122 # endif /* __cplusplus */
124 #endif /* !_CUPS_STRING_H_ */
127 * End of "$Id: string.h,v 1.15 2002/12/17 18:56:43 swdev Exp $".