* c-valprint.c (c_value_print): Fix up some formatting. Use
[deliverable/binutils-gdb.git] / gdb / gdb_string.h
... / ...
CommitLineData
1/* Portable <string.h>
2
3 Copyright 1995, 1998, 1999, 2000, 2001, 2004
4 Free Software Foundation, Inc.
5
6 This file is part of GDB.
7
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.
12
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.
17
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
20 Foundation, Inc., 59 Temple Place - Suite 330,
21 Boston, MA 02111-1307, USA. */
22
23#if !defined(GDB_STRING_H)
24#define GDB_STRING_H
25
26#ifdef STDC_HEADERS
27#include <string.h>
28#else
29#ifdef HAVE_STRING_H
30#include <string.h>
31#else
32#include <strings.h>
33#endif
34
35#ifndef strchr
36extern char *strchr (const char *, int); /* X3.159-1989 4.11.5.2 */
37#endif
38
39#ifndef strrchr
40extern char *strrchr (const char *, int); /* X3.159-1989 4.11.5.5 */
41#endif
42
43#ifndef strtok
44extern char *strtok (char *, const char *); /* X3.159-1989 4.11.5.8 */
45#endif
46
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
55#endif /* STDC_HEADERS */
56
57#if !HAVE_DECL_STRERROR
58#ifndef strerror
59extern char *strerror (int); /* X3.159-1989 4.11.6.2 */
60#endif
61#endif
62
63#if !HAVE_DECL_STRSTR
64#ifndef strstr
65extern char *strstr (const char *, const char *); /* X3.159-1989 4.11.5.7 */
66#endif
67#endif
68
69#endif /* !defined(GDB_STRING_H) */
This page took 0.026343 seconds and 4 git commands to generate.