home *** CD-ROM | disk | FTP | other *** search
/ linuxmafia.com 2016 / linuxmafia.com.tar / linuxmafia.com / pub / linux / backup / star-1.3.1.tar.gz / star-1.3.1.tar / star-1.3.1 / include / strdefs.h < prev    next >
C/C++ Source or Header  |  2000-11-08  |  3KB  |  91 lines

  1. /* @(#)strdefs.h    1.3 00/11/08 Copyright 1996 J. Schilling */
  2. /*
  3.  *    Definitions for strings
  4.  *
  5.  *    Copyright (c) 1996 J. Schilling
  6.  */
  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, or (at your option)
  11.  * 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; see the file COPYING.  If not, write to
  20.  * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
  21.  */
  22.  
  23. #ifndef _STRDEFS_H
  24. #define    _STRDEFS_H
  25.  
  26. #ifndef    _MCONFIG_H
  27. #include <mconfig.h>
  28. #endif
  29.  
  30. #ifdef    HAVE_STRING_H
  31. #include <string.h>
  32. #else    /* HAVE_STRING_H */
  33.  
  34. #ifdef    __cplusplus
  35. extern "C" {
  36. #endif
  37.  
  38. #ifndef NULL
  39. #define    NULL    0
  40. #endif
  41.  
  42. extern void *memcpy    __PR((void *, const void *, int));
  43. extern void *memmove    __PR((void *, const void *, int));
  44. extern char *strcpy    __PR((char *, const char *));
  45. extern char *strncpy    __PR((char *, const char *, int));
  46.  
  47. extern char *strcat    __PR((char *, const char *));
  48. extern char *strncat    __PR((char *, const char *, int));
  49.  
  50. extern int memcmp    __PR((const void *, const void *, int));
  51. extern int strcmp    __PR((const char *, const char *));
  52. extern int strcoll    __PR((const char *, const char *));
  53. extern int strncmp    __PR((const char *, const char *, int));
  54. extern int strxfrm    __PR((char *, const char *, int));
  55.  
  56. extern void *memchr    __PR((const void *, int, int));
  57. extern char *strchr    __PR((const char *, int));
  58.  
  59. extern int strcspn    __PR((const char *, const char *));
  60. /*#pragma int_to_unsigned strcspn*/
  61.  
  62. extern char *strpbrk    __PR((const char *, const char *));
  63. extern char *strrchr    __PR((const char *, int));
  64.  
  65. extern int strspn    __PR((const char *, const char *));
  66. /*#pragma int_to_unsigned strspn*/
  67.  
  68. extern char *strstr    __PR((const char *, const char *));
  69. extern char *strtok    __PR((char *, const char *));
  70. extern void *memset    __PR((void *, int, int));
  71. extern char *strerror    __PR((int));
  72.  
  73. extern int strlen    __PR((const char *));
  74. /*#pragma int_to_unsigned strlen*/
  75.  
  76. extern void *memccpy    __PR((void *, const void *, int, int));
  77.  
  78. extern int strcasecmp    __PR((const char *, const char *));
  79. extern int strncasecmp    __PR((const char *, const char *, int));
  80.  
  81. /*#define    index    strchr*/
  82. /*#define    rindex    strrchr*/
  83.  
  84. #ifdef    __cplusplus
  85. }
  86. #endif
  87.  
  88. #endif    /* HAVE_STRING_H */
  89.  
  90. #endif    /* _STRDEFS_H */
  91.