]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - cups/string.h
Cleanup.
[thirdparty/cups.git] / cups / string.h
index f6525c4209b3ca20e70e9ece0cd13e9a7157847f..b98e5c107793a783200ead0eb5ba0673681fd99e 100644 (file)
@@ -1,9 +1,9 @@
 /*
- * "$Id: string.h,v 1.7.2.2 2002/01/02 18:04:30 mike Exp $"
+ * "$Id: string.h,v 1.7.2.13 2004/06/29 13:15:09 mike Exp $"
  *
  *   String definitions for the Common UNIX Printing System (CUPS).
  *
- *   Copyright 1997-2002 by Easy Software Products.
+ *   Copyright 1997-2004 by Easy Software Products.
  *
  *   These coded instructions, statements, and computer programs are the
  *   property of Easy Software Products and are protected by Federal
  *       Attn: CUPS Licensing Information
  *       Easy Software Products
  *       44141 Airport View Drive, Suite 204
- *       Hollywood, Maryland 20636-3111 USA
+ *       Hollywood, Maryland 20636-3142 USA
  *
- *       Voice: (301) 373-9603
+ *       Voice: (301) 373-9600
  *       EMail: cups-info@cups.org
  *         WWW: http://www.cups.org
+ *
+ *   This file is subject to the Apple OS-Developed Software exception.
  */
 
 #ifndef _CUPS_STRING_H_
  * Include necessary headers...
  */
 
+#  include "config.h"
+
 #  include <stdio.h>
 #  include <stdarg.h>
-#  include <config.h>
+#  include <ctype.h>
 
 #  ifdef HAVE_STRING_H
 #    include <string.h>
 #    include <strings.h>
 #  endif /* HAVE_STRINGS_H */
 
+#  ifdef HAVE_BSTRING_H
+#    include <bstring.h>
+#  endif /* HAVE_BSTRING_H */
+
 
 /*
  * Stuff for WIN32 and OS/2...
@@ -65,24 +73,45 @@ extern "C" {
  * Prototypes...
  */
 
+extern void    cups_strcpy(char *dst, const char *src);
+
 #  ifndef HAVE_STRDUP
-extern char    *strdup(const char *);
+extern char    *cups_strdup(const char *);
+#    define strdup cups_strdup
 #  endif /* !HAVE_STRDUP */
 
 #  ifndef HAVE_STRCASECMP
-extern int     strcasecmp(const char *, const char *);
+extern int     cups_strcasecmp(const char *, const char *);
+#    define strcasecmp cups_strcasecmp
 #  endif /* !HAVE_STRCASECMP */
 
 #  ifndef HAVE_STRNCASECMP
-extern int     strncasecmp(const char *, const char *, size_t n);
+extern int     cups_strncasecmp(const char *, const char *, size_t n);
+#    define strncasecmp cups_strncasecmp
 #  endif /* !HAVE_STRNCASECMP */
 
+#  ifndef HAVE_STRLCAT
+extern size_t cups_strlcat(char *, const char *, size_t);
+#    define strlcat cups_strlcat
+#  endif /* !HAVE_STRLCAT */
+
+#  ifndef HAVE_STRLCPY
+extern size_t cups_strlcpy(char *, const char *, size_t);
+#    define strlcpy cups_strlcpy
+#  endif /* !HAVE_STRLCPY */
+
 #  ifndef HAVE_SNPRINTF
-extern int     snprintf(char *, size_t, const char *, ...);
+extern int     cups_snprintf(char *, size_t, const char *, ...)
+#    ifdef __GNUC__
+__attribute__ ((__format__ (__printf__, 3, 4)))
+#    endif /* __GNUC__ */
+;
+#    define snprintf cups_snprintf
 #  endif /* !HAVE_SNPRINTF */
 
 #  ifndef HAVE_VSNPRINTF
-extern int     vsnprintf(char *, size_t, const char *, va_list);
+extern int     cups_vsnprintf(char *, size_t, const char *, va_list);
+#    define vsnprintf cups_vsnprintf
 #  endif /* !HAVE_VSNPRINTF */
 
 
@@ -97,5 +126,5 @@ extern int   vsnprintf(char *, size_t, const char *, va_list);
 #endif /* !_CUPS_STRING_H_ */
 
 /*
- * End of "$Id: string.h,v 1.7.2.2 2002/01/02 18:04:30 mike Exp $".
+ * End of "$Id: string.h,v 1.7.2.13 2004/06/29 13:15:09 mike Exp $".
  */