home *** CD-ROM | disk | FTP | other *** search
/ Amiga ACS 1998 #4 / amigaacscoverdisc1998-041998.iso / utilities / shareware / dev / vbcc / machines / amiga68k / include / string.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-12-30  |  3.6 KB  |  155 lines

  1. #ifndef __STRING_H
  2. #define __STRING_H 1
  3.  
  4. #include <stddef.h>
  5.  
  6. void *memcpy(void *,const void *,size_t);
  7. void *memmove(void *,const void *,size_t);
  8. char *strcpy(char *,const char *);
  9. char *strncpy(char *,const char *,size_t);
  10. char *strcat(char *,const char *);
  11. char *strncat(char *,const char *,size_t);
  12. int memcmp(const void *,const void *,size_t);
  13. int strcmp(const char *,const char *);
  14. int strncmp(const char *,const char *,size_t);
  15. void *memchr(const void *,int,size_t);
  16. char *strchr(const char *,int);
  17. size_t strcspn(const char *,const char *);
  18. char *strpbrk(const char *,const char *);
  19. char *strrchr(const char *,int);
  20. size_t strspn(const char *,const char *);
  21. char *strstr(const char *,const char *);
  22. void *memset(void *,int,size_t);
  23. size_t strlen(const char *);
  24. char *strtok(char *,const char *);
  25. char *strerror(int);
  26.  
  27. #ifdef __INLINE_ALL
  28. #define __INLINE_MEMCHR
  29. #define __INLINE_MEMCMP
  30. #define __INLINE_MEMCPY
  31. #define __INLINE_MEMMOVE
  32. #define __INLINE_MEMSET
  33. #define __INLINE_STRCAT
  34. #define __INLINE_STRCHR
  35. #define __INLINE_STRCMP
  36. #define __INLINE_STRCPY
  37. #define __INLINE_STRCSPN
  38. #define __INLINE_STRERROR
  39. #define __INLINE_STRLEN
  40. #define __INLINE_STRNCAT
  41. #define __INLINE_STRNCMP
  42. #define __INLINE_STRNCPY
  43. #define __INLINE_STRPBRK
  44. #define __INLINE_STRRCHR
  45. #define __INLINE_STRSPN
  46. #define __INLINE_STRSTR
  47. #define __INLINE_STRTOL
  48. #endif
  49.  
  50. #ifdef __INLINE_MEMCHR
  51. #pragma only-inline on
  52. #include "vbcc:libsrc/string/memchr.c"
  53. #pragma only-inline off
  54. #endif
  55. #ifdef __INLINE_MEMCMP
  56. #pragma only-inline on
  57. #include "vbcc:libsrc/string/memcmp.c"
  58. #pragma only-inline off
  59. #endif
  60. #ifdef __INLINE_MEMCPY
  61. #pragma only-inline on
  62. #include "vbcc:libsrc/string/memcpy.c"
  63. #pragma only-inline off
  64. #endif
  65. #ifdef __INLINE_MEMMOVE
  66. #pragma only-inline on
  67. #include "vbcc:libsrc/string/memmove.c"
  68. #pragma only-inline off
  69. #endif
  70. #ifdef __INLINE_MEMSET
  71. #pragma only-inline on
  72. #include "vbcc:libsrc/string/memset.c"
  73. #pragma only-inline off
  74. #endif
  75. #ifdef __INLINE_STRCAT
  76. #pragma only-inline on
  77. #include "vbcc:libsrc/string/strcat.c"
  78. #pragma only-inline off
  79. #endif
  80. #ifdef __INLINE_STRCHR
  81. #pragma only-inline on
  82. #include "vbcc:libsrc/string/strchr.c"
  83. #pragma only-inline off
  84. #endif
  85. #ifdef __INLINE_STRCMP
  86. #pragma only-inline on
  87. #include "vbcc:libsrc/string/strcmp.c"
  88. #pragma only-inline off
  89. #endif
  90. #ifdef __INLINE_STRCPY
  91. #pragma only-inline on
  92. #include "vbcc:libsrc/string/strcpy.c"
  93. #pragma only-inline off
  94. #endif
  95. #ifdef __INLINE_STRCSPN
  96. #pragma only-inline on
  97. #include "vbcc:libsrc/string/strcspn.c"
  98. #pragma only-inline off
  99. #endif
  100. #ifdef __INLINE_STRERROR
  101. #pragma only-inline on
  102. #include "vbcc:libsrc/string/strerror.c"
  103. #pragma only-inline off
  104. #endif
  105. #ifdef __INLINE_STRLEN
  106. #pragma only-inline on
  107. #include "vbcc:libsrc/string/strlen.c"
  108. #pragma only-inline off
  109. #endif
  110. #ifdef __INLINE_STRNCAT
  111. #pragma only-inline on
  112. #include "vbcc:libsrc/string/strncat.c"
  113. #pragma only-inline off
  114. #endif
  115. #ifdef __INLINE_STRNCMP
  116. #pragma only-inline on
  117. #include "vbcc:libsrc/string/strncmp.c"
  118. #pragma only-inline off
  119. #endif
  120. #ifdef __INLINE_STRNCPY
  121. #pragma only-inline on
  122. #include "vbcc:libsrc/string/strncpy.c"
  123. #pragma only-inline off
  124. #endif
  125. #ifdef __INLINE_STRPBRK
  126. #pragma only-inline on
  127. #include "vbcc:libsrc/string/strpbrk.c"
  128. #pragma only-inline off
  129. #endif
  130. #ifdef __INLINE_STRRCHR
  131. #pragma only-inline on
  132. #include "vbcc:libsrc/string/strrchr.c"
  133. #pragma only-inline off
  134. #endif
  135. #ifdef __INLINE_STRSPN
  136. #pragma only-inline on
  137. #include "vbcc:libsrc/string/strspn.c"
  138. #pragma only-inline off
  139. #endif
  140. #ifdef __INLINE_STRSTR
  141. #pragma only-inline on
  142. #include "vbcc:libsrc/string/strstr.c"
  143. #pragma only-inline off
  144. #endif
  145. #ifdef __INLINE_STRTOK
  146. #pragma only-inline on
  147. #include "vbcc:libsrc/string/strtok.c"
  148. #pragma only-inline off
  149. #endif
  150.  
  151.  
  152.  
  153. #endif
  154.  
  155.