Annotation of win32/gnome/gmime-x.x.x/strlib.h, revision 1.1
1.1 ! paf 1: /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
! 2: /*
! 3: * Authors: Jeffrey Stedfast <fejj@ximian.com>
! 4: *
! 5: * Copyright 2001 Ximian, Inc. (www.ximian.com)
! 6: *
! 7: * This program is free software; you can redistribute it and/or modify
! 8: * it under the terms of the GNU General Public License as published by
! 9: * the Free Software Foundation; either version 2 of the License, or
! 10: * (at your option) any later version.
! 11: *
! 12: * This program is distributed in the hope that it will be useful,
! 13: * but WITHOUT ANY WARRANTY; without even the implied warranty of
! 14: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
! 15: * GNU General Public License for more details.
! 16: *
! 17: * You should have received a copy of the GNU General Public License
! 18: * along with this program; if not, write to the Free Software
! 19: * Foundation, Inc., 59 Temple Street #330, Boston, MA 02111-1307, USA.
! 20: *
! 21: */
! 22:
! 23:
! 24: #ifndef __STRLIB_H__
! 25: #define __STRLIB_H__
! 26:
! 27: #ifdef __cplusplus
! 28: extern "C" {
! 29: //#pragma }
! 30: #endif /* __cplusplus */
! 31:
! 32: #ifdef HAVE_SYS_TYPES_H
! 33: #include <sys/types.h>
! 34: #endif
! 35: #ifdef HAVE_STRINGS_H
! 36: #include <strings.h>
! 37: #endif
! 38: #ifdef HAVE_STRING_H
! 39: #include <string.h>
! 40: #endif
! 41:
! 42: #if !defined (HAVE_MEMCHR) || !defined (memchr)
! 43: void *memchr (const void *s, int c, size_t n);
! 44: #endif
! 45:
! 46: #if !defined (HAVE_MEMRCHR) || !defined (memrchr)
! 47: void *memrchr (const void *s, int c, size_t n);
! 48: #endif
! 49:
! 50: #if !defined (HAVE_MEMMEM) || !defined (memmem)
! 51: void *memmem (const void *haystack, size_t haystacklen,
! 52: const void *needle, size_t needlelen);
! 53: #endif
! 54:
! 55: #if !defined (HAVE_STRLEN) || !defined (strlen)
! 56: size_t strlen (const char *s);
! 57: #endif
! 58:
! 59: #if !defined (HAVE_STRCPY) || !defined (strcpy)
! 60: char *strcpy (char *dest, const char *src);
! 61: #endif
! 62:
! 63: #if !defined (HAVE_STRNCPY) || !defined (strncpy)
! 64: char *strncpy (char *dest, const char *src, size_t n);
! 65: #endif
! 66:
! 67: #if !defined (HAVE_STRLCPY) || !defined (strlcpy)
! 68: size_t strlcpy (char *dest, const char *src, size_t n);
! 69: #endif
! 70:
! 71: #if !defined (HAVE_STPCPY) || !defined (stpcpy)
! 72: char *stpcpy (char *dest, const char *src);
! 73: #endif
! 74:
! 75: #if !defined (HAVE_STRCAT) || !defined (strcat)
! 76: char *strcat (char *dest, const char *src);
! 77: #endif
! 78:
! 79: #if !defined (HAVE_STRNCAT) || !defined (strncat)
! 80: char *strncat (char *dest, const char *src, size_t n);
! 81: #endif
! 82:
! 83: #if !defined (HAVE_STRLCAT) || !defined (strlcat)
! 84: size_t strlcat (char *dest, const char *src, size_t n);
! 85: #endif
! 86:
! 87: #if !defined (HAVE_STRCHR) || !defined (strchr)
! 88: char *strchr (const char *s, int c);
! 89: #endif
! 90:
! 91: #if !defined (HAVE_STRRCHR) || !defined (strrchr)
! 92: char *strrchr (const char *s, int c);
! 93: #endif
! 94:
! 95: #if !defined (HAVE_STRNSTR) || !defined (strnstr)
! 96: char *strnstr (const char *haystack, const char *needle, size_t haystacklen);
! 97: #endif
! 98:
! 99: #if !defined (HAVE_STRSTR) || !defined (strstr)
! 100: char *strstr (const char *haystack, const char *needle);
! 101: #endif
! 102:
! 103: #if !defined (HAVE_STRNCASESTR) || !defined (strncasestr)
! 104: char *strncasestr (const char *haystack, const char *needle, size_t haystacklen);
! 105: #endif
! 106:
! 107: #if !defined (HAVE_STRCASESTR) || !defined (strcasestr)
! 108: char *strcasestr (const char *haystack, const char *needle);
! 109: #endif
! 110:
! 111: #if !defined (HAVE_STRNCASECMP) || !defined (strncasecmp)
! 112: int strncasecmp (const char *s1, const char *s2, size_t n);
! 113: #endif
! 114:
! 115: #if !defined (HAVE_STRCASECMP) || !defined (strcasecmp)
! 116: int strcasecmp (const char *s1, const char *s2);
! 117: #endif
! 118:
! 119: #ifdef __cplusplus
! 120: }
! 121: #endif /* __cplusplus */
! 122:
! 123: #endif /* __STRLIB_H__ */
E-mail: