home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 15 / 15.iso / s / s038 / 10.ddi / 017.LIF / STRING.H < prev    next >
Encoding:
C/C++ Source or Header  |  1992-07-02  |  3.0 KB  |  92 lines

  1. /* string.h - string function prototypes
  2.  * $Version: 1.1 $
  3.  * Copyright (c) 1984,85,86,87 Computer Innovations Inc, ALL RIGHTS RESERVED.
  4.  * Copyright (c) 1988,89, 90 Intel Corporation, ALL RIGHTS RESERVED.
  5.  */
  6.  
  7. #ifndef _stringh
  8. #define _stringh
  9. /*lint -library */
  10.  
  11. #pragma fixedparams("memchr",   "memcmp",   "memcpy",  "memset",  "memmove")
  12. #pragma fixedparams("strcat",   "strchr",   "strcmp",  "strcpy",  "strcspn")
  13. #pragma fixedparams("strlen",   "strncat",  "strncmp", "strncpy", "strpbrk")
  14. #pragma fixedparams("strrchr",  "strspn",   "strstr",  "strtok",  "strcoll")
  15. #pragma fixedparams("strxfrm")
  16. #pragma fixedparams("movedata", "strerror")
  17. #pragma fixedparams("memccpy",  "memicmp",  "strcmpi", "strdup",  "stricmp")
  18. #pragma fixedparams("strlwr",   "strnicmp", "strnset", "strrev",  "strset")
  19. #pragma fixedparams("strupr",   "udistr")
  20. #pragma fixedparams("cstr") 
  21.  
  22. #ifndef NULL
  23. #define NULL ((void *)0)
  24. #endif
  25.  
  26. #ifndef _size_t
  27. #define _size_t
  28. typedef unsigned size_t;
  29. #endif
  30.  
  31. /*
  32.  * Function prototypes:
  33.  */
  34. char *cstr(char *, const char *);
  35. void  *memccpy(void *, const void *, int, int);
  36. void  *memchr(const void *, int, size_t);
  37. int    memcmp(const void*, const void*, size_t);
  38. void  *memcpy(void*, const void*, size_t);
  39. int    memicmp(const void *, const void *, unsigned);
  40. void  *memmove(void *, const void *, size_t);
  41. void  *memset(void*, int, size_t);
  42. void   movedata(unsigned, unsigned, unsigned, unsigned, unsigned);
  43. char  *strcat(char *, const char *);
  44. char  *strchr(const char *, int);
  45. int    strcmp(const char *, const char *);
  46. int    strcmpi(const char *, const char *);
  47. int    strcoll(const char *, const char *);
  48. char  *strcpy(char*, const char*);
  49. size_t strcspn(const char *, const char *);
  50. char  *strdup(const char *);
  51. char  *strerror(int);
  52. int    stricmp(const char *, const char *);
  53. size_t strlen(const char *);
  54. char  *strlwr(char *);
  55. char  *strncat(char *, const char *, size_t);
  56. int    strncmp(const char *, const char *, size_t);
  57. char  *strncpy(char *, const char *, size_t);
  58. int    strnicmp(const char *, const char *, size_t);
  59. char  *strnset(char *, int, size_t);
  60. char  *strpbrk(const char *, const char *);
  61. char  *strrchr(const char *, int);
  62. char  *strrev(char *);
  63. char  *strset(char *, int);
  64. size_t strspn(const char *, const char *);
  65. char  *strstr(const char *, const char *);
  66. char  *strtok(char *, const char *);
  67. char  *strupr(char *);
  68. size_t strxfrm(char *, const char *, size_t);
  69. char *udistr(char *, const char *);
  70.  
  71. /*
  72.  * Compiler built-in functions:
  73.  */
  74. #ifndef _stringh_builtin
  75. #define _stringh_builtin
  76.  
  77. #pragma _builtin_("_memcpy_"==64)
  78. void *_memcpy_(void*, const void*, size_t);
  79. #define memcpy(x,y,z) _memcpy_(x,y,z)
  80.  
  81. #pragma _builtin_("_memset_"==65)
  82. void *_memset_(void*, int, size_t);
  83. #define memset(x,y,z) _memset_(x,y,z)
  84.  
  85. #pragma _builtin_("_strcpy_"==71)
  86. char *_strcpy_(char*, const char*);
  87. #define strcpy(x,y)  _strcpy_(x,y)
  88.  
  89. #endif /* _stringh_builtin */
  90.  
  91. #endif /* _stringh */
  92.