home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 4: GNU Archives / Linux Cubed Series 4 - GNU Archives.iso / gnu / git-4.3 / git-4 / git-4.3.11 / src / xstring.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-04-22  |  1.9 KB  |  66 lines

  1. /* xstring.h -- Prototypes for the functions in xstring.c.  */
  2.  
  3. /* Copyright (C) 1993, 1994, 1995 Free Software Foundation, Inc.
  4.  
  5.    This program is free software; you can redistribute it and/or modify
  6.    it under the terms of the GNU General Public License as published by
  7.    the Free Software Foundation; either version 2, or (at your option)
  8.    any later version.
  9.  
  10.    This program is distributed in the hope that it will be useful,
  11.    but WITHOUT ANY WARRANTY; without even the implied warranty of
  12.    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13.    GNU General Public License for more details.
  14.  
  15.    You should have received a copy of the GNU General Public License
  16.    along with this program; if not, write to the Free Software
  17.    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
  18.  
  19. /* Written by Tudor Hulubei and Andrei Pitis.  */
  20.  
  21.  
  22. #ifndef _GIT_XSTRING_H
  23. #define _GIT_XSTRING_H
  24.  
  25.  
  26. #include <sys/types.h>
  27.  
  28. #if defined(STDC_HEADERS) || defined(HAVE_STRING_H)
  29.  
  30. #include <string.h>
  31. /* An ANSI string.h and pre-ANSI memory.h might conflict.  */
  32.  
  33. #if !defined(STDC_HEADERS) && defined(HAVE_MEMORY_H)
  34. #include <memory.h>
  35. #endif /* !STDC_HEADERS and HAVE_MEMORY_H */
  36.  
  37. #else /* !STDC_HEADERS and !HAVE_STRING_H */
  38.  
  39. #include <strings.h>
  40. /* memory.h and strings.h conflict on some systems.  */
  41. #endif /* !STDC_HEADERS and !HAVE_STRING_H */
  42.  
  43.  
  44. #include "stdc.h"
  45.  
  46.  
  47. #ifndef HAVE_STRCASECMP
  48. extern int strcasecmp PROTO ((const char *, const char *));
  49. #endif /* !HAVE_STRCASECMP */
  50.  
  51. #ifndef HAVE_STRNCASECMP
  52. extern int strncasecmp PROTO ((const char *, const char *, size_t));
  53. #endif /* !HAVE_STRNCASECMP */
  54.  
  55. #ifndef HAVE_STRSTR
  56. extern char *strstr PROTO ((const char *, const char *));
  57. #endif /* !HAVE_STRSTR */
  58.  
  59. #ifndef HAVE_MEMMOVE
  60. extern void *memmove PROTO ((void *, const void *, size_t));
  61. #endif /* !HAVE_MEMMOVE */
  62.  
  63. extern char *xstrdup PROTO ((const char *));
  64.  
  65. #endif  /* _GIT_XSTRING_H */
  66.