GDB (API)
/home/stan/gdb/src/gdb/common/gdb_string.h
Go to the documentation of this file.
00001 /* Portable <string.h>
00002 
00003    Copyright (C) 1995-2013 Free Software Foundation, Inc.
00004 
00005    This file is part of GDB.
00006 
00007    This program is free software; you can redistribute it and/or modify
00008    it under the terms of the GNU General Public License as published by
00009    the Free Software Foundation; either version 3 of the License, or
00010    (at your option) any later version.
00011 
00012    This program is distributed in the hope that it will be useful,
00013    but WITHOUT ANY WARRANTY; without even the implied warranty of
00014    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015    GNU General Public License for more details.
00016 
00017    You should have received a copy of the GNU General Public License
00018    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
00019 
00020 #if !defined(GDB_STRING_H)
00021 #define GDB_STRING_H
00022 
00023 #ifdef STDC_HEADERS
00024 #include <string.h>
00025 #ifdef HAVE_STRINGS_H
00026 #include <strings.h> /* strcasecmp etc..  */
00027 #endif
00028 #else
00029 #ifdef HAVE_STRING_H
00030 #include <string.h>
00031 #else
00032 #include <strings.h>
00033 #endif
00034 
00035 #ifndef strchr
00036 extern char *strchr (const char *, int);        /* X3.159-1989  4.11.5.2 */
00037 #endif
00038 
00039 #ifndef strrchr
00040 extern char *strrchr (const char *, int);       /* X3.159-1989  4.11.5.5 */
00041 #endif
00042 
00043 #ifndef strtok
00044 extern char *strtok (char *, const char *);     /* X3.159-1989  4.11.5.8 */
00045 #endif
00046 
00047 #ifdef HAVE_MEMORY_H
00048 #include <memory.h>
00049 #else
00050 extern void *memset ();
00051 extern void *memcpy ();
00052 extern void *memmove ();
00053 extern int memcmp ();
00054 #endif
00055 #endif /* STDC_HEADERS */
00056 
00057 #if !HAVE_DECL_STRERROR
00058 #ifndef strerror
00059 extern char *strerror (int);    /* X3.159-1989  4.11.6.2 */
00060 #endif
00061 #endif
00062 
00063 #if !HAVE_DECL_STRSTR
00064 #ifndef strstr
00065 extern char *strstr (const char *, const char *); /* X3.159-1989  4.11.5.7 */
00066 #endif
00067 #endif
00068 
00069 #endif /* !defined(GDB_STRING_H) */
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines