* config.sub, config.guess: Update from upstream sources.
[deliverable/binutils-gdb.git] / gdb / gdb_string.h
CommitLineData
c906108c 1/* Portable <string.h>
a3828db0 2
197e01b6 3 Copyright (C) 1995, 1998, 1999, 2000, 2001, 2004
a3828db0 4 Free Software Foundation, Inc.
c906108c 5
c5aa993b 6 This file is part of GDB.
c906108c 7
c5aa993b
JM
8 This program is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 2 of the License, or
11 (at your option) any later version.
c906108c 12
c5aa993b
JM
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
c906108c 17
c5aa993b
JM
18 You should have received a copy of the GNU General Public License
19 along with this program; if not, write to the Free Software
197e01b6
EZ
20 Foundation, Inc., 51 Franklin Street, Fifth Floor,
21 Boston, MA 02110-1301, USA. */
c906108c
SS
22
23#if !defined(GDB_STRING_H)
24#define GDB_STRING_H
25
26#ifdef STDC_HEADERS
27#include <string.h>
28#else
c5aa993b
JM
29#ifdef HAVE_STRING_H
30#include <string.h>
31#else
32#include <strings.h>
33#endif
c906108c
SS
34
35#ifndef strchr
a14ed312 36extern char *strchr (const char *, int); /* X3.159-1989 4.11.5.2 */
c906108c
SS
37#endif
38
39#ifndef strrchr
a14ed312 40extern char *strrchr (const char *, int); /* X3.159-1989 4.11.5.5 */
c906108c
SS
41#endif
42
c906108c 43#ifndef strtok
a14ed312 44extern char *strtok (char *, const char *); /* X3.159-1989 4.11.5.8 */
c906108c
SS
45#endif
46
c5aa993b
JM
47#ifdef HAVE_MEMORY_H
48#include <memory.h>
49#else
50extern void *memset ();
51extern void *memcpy ();
52extern void *memmove ();
53extern int memcmp ();
54#endif
c906108c
SS
55#endif /* STDC_HEADERS */
56
a3828db0 57#if !HAVE_DECL_STRERROR
c906108c 58#ifndef strerror
a14ed312 59extern char *strerror (int); /* X3.159-1989 4.11.6.2 */
c906108c
SS
60#endif
61#endif
62
a3828db0 63#if !HAVE_DECL_STRSTR
b83266a0 64#ifndef strstr
a3828db0 65extern char *strstr (const char *, const char *); /* X3.159-1989 4.11.5.7 */
b83266a0
SS
66#endif
67#endif
68
c5aa993b 69#endif /* !defined(GDB_STRING_H) */
This page took 0.48746 seconds and 4 git commands to generate.