1e93f7393Sniklas /* Portable <string.h> 2*b725ae77Skettenis Copyright 1995, 1998, 1999, 2000, 2001 Free Software Foundation, Inc. 3e93f7393Sniklas 4e93f7393Sniklas This file is part of GDB. 5e93f7393Sniklas 6e93f7393Sniklas This program is free software; you can redistribute it and/or modify 7e93f7393Sniklas it under the terms of the GNU General Public License as published by 8e93f7393Sniklas the Free Software Foundation; either version 2 of the License, or 9e93f7393Sniklas (at your option) any later version. 10e93f7393Sniklas 11e93f7393Sniklas This program is distributed in the hope that it will be useful, 12e93f7393Sniklas but WITHOUT ANY WARRANTY; without even the implied warranty of 13e93f7393Sniklas MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14e93f7393Sniklas GNU General Public License for more details. 15e93f7393Sniklas 16e93f7393Sniklas You should have received a copy of the GNU General Public License 17e93f7393Sniklas along with this program; if not, write to the Free Software 18*b725ae77Skettenis Foundation, Inc., 59 Temple Place - Suite 330, 19*b725ae77Skettenis Boston, MA 02111-1307, USA. */ 20e93f7393Sniklas 21e93f7393Sniklas #if !defined(GDB_STRING_H) 22e93f7393Sniklas #define GDB_STRING_H 23e93f7393Sniklas 24e93f7393Sniklas #ifdef STDC_HEADERS 25e93f7393Sniklas #include <string.h> 26e93f7393Sniklas #else 27e93f7393Sniklas #ifdef HAVE_STRING_H 28e93f7393Sniklas #include <string.h> 29e93f7393Sniklas #else 30e93f7393Sniklas #include <strings.h> 31e93f7393Sniklas #endif 32e93f7393Sniklas 33e93f7393Sniklas #ifndef strchr 34*b725ae77Skettenis extern char *strchr (const char *, int); /* X3.159-1989 4.11.5.2 */ 35e93f7393Sniklas #endif 36e93f7393Sniklas 37e93f7393Sniklas #ifndef strrchr 38*b725ae77Skettenis extern char *strrchr (const char *, int); /* X3.159-1989 4.11.5.5 */ 39e93f7393Sniklas #endif 40e93f7393Sniklas 41e93f7393Sniklas #ifndef strtok 42*b725ae77Skettenis extern char *strtok (char *, const char *); /* X3.159-1989 4.11.5.8 */ 43e93f7393Sniklas #endif 44e93f7393Sniklas 45e93f7393Sniklas #ifdef HAVE_MEMORY_H 46e93f7393Sniklas #include <memory.h> 47e93f7393Sniklas #else 48e93f7393Sniklas extern void *memset (); 49e93f7393Sniklas extern void *memcpy (); 50e93f7393Sniklas extern void *memmove (); 51e93f7393Sniklas extern int memcmp (); 52e93f7393Sniklas #endif 53*b725ae77Skettenis #endif /* STDC_HEADERS */ 54*b725ae77Skettenis 55*b725ae77Skettenis #ifdef NEED_DECLARATION_STRERROR 56*b725ae77Skettenis #ifndef strerror 57*b725ae77Skettenis extern char *strerror (int); /* X3.159-1989 4.11.6.2 */ 58*b725ae77Skettenis #endif 59e93f7393Sniklas #endif 60e93f7393Sniklas 61*b725ae77Skettenis #ifdef NEED_DECLARATION_STRSTR 62*b725ae77Skettenis #ifndef strstr 63*b725ae77Skettenis extern char *strstr (const char *, const char *); /* X3.159-1989 4.11.5.7 */ 64*b725ae77Skettenis #endif 65*b725ae77Skettenis #endif 66e93f7393Sniklas 67e93f7393Sniklas #endif /* !defined(GDB_STRING_H) */ 68