Commit | Line | Data |
---|---|---|
2b576293 C |
1 | /* Portable <string.h> |
2 | Copyright 1995 Free Software Foundation, Inc. | |
3 | ||
4 | This file is part of GDB. | |
5 | ||
6 | This program is free software; you can redistribute it and/or modify | |
7 | it under the terms of the GNU General Public License as published by | |
8 | the Free Software Foundation; either version 2 of the License, or | |
9 | (at your option) any later version. | |
10 | ||
11 | This program is distributed in the hope that it will be useful, | |
12 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
14 | GNU General Public License for more details. | |
15 | ||
16 | You should have received a copy of the GNU General Public License | |
17 | along with this program; if not, write to the Free Software | |
6c9638b4 | 18 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ |
2b576293 C |
19 | |
20 | #if !defined(GDB_STRING_H) | |
21 | #define GDB_STRING_H | |
22 | ||
23 | #ifdef STDC_HEADERS | |
24 | #include <string.h> | |
25 | #else | |
26 | # ifdef HAVE_STRING_H | |
27 | # include <string.h> | |
28 | # else | |
29 | # include <strings.h> | |
30 | # endif | |
31 | extern char *strchr(); | |
32 | extern char *strrchr(); | |
33 | extern char *strstr(); | |
34 | extern char *strtok(); | |
35 | extern char *strerror(); | |
36 | # ifdef HAVE_MEMORY_H | |
37 | # include <memory.h> | |
38 | # else | |
39 | extern void *memset(); | |
40 | extern void *memcpy(); | |
41 | extern void *memmove(); | |
42 | extern int memcmp(); | |
43 | # endif | |
44 | #endif | |
45 | ||
46 | extern char *strdup(); | |
47 | ||
48 | #endif /* !defined(GDB_STRING_H) */ |