1
/*
2
 * Copyright (c) 1999
3
 * Boris Fomitchev
4
 *
5
 * This material is provided "as is", with absolutely no warranty expressed
6
 * or implied. Any use is at your own risk.
7
 *
8
 * Permission to use or copy this software for any purpose is hereby granted
9
 * without fee, provided the above notices are retained on all copies.
10
 * Permission to modify the code and to distribute modified code is granted,
11
 * provided the above notices are retained, and a notice that the code was
12
 * modified is included with the above copyright notice.
13
 *
14
 */
15
16
#ifndef _STLP_CSTRING
17
#  define _STLP_CSTRING
18
19
#ifndef _STLP_OUTERMOST_HEADER_ID
20
#  define _STLP_OUTERMOST_HEADER_ID 0x117
21
#  include <stl/_prolog.h>
22
#endif
23
24
#  include <string.h>
25
26
#ifdef _STLP_IMPORT_VENDOR_CSTD
27
_STLP_BEGIN_NAMESPACE
28
29
using _STLP_VENDOR_CSTD::size_t;
30
31
#if !defined (_STLP_NO_CSTD_FUNCTION_IMPORTS)
32
#  if defined (__MSL__) && __MC68K__ && !_No_BlockMove && __dest_os == __mac_os
33
#    undef memcpy
34
#    undef memmove
35
inline void* memcpy(void* dst, const void* src, size_t len)
36
{	return _STLP_VENDOR_CSTD::__memcpy(dst, src, len); }
37
inline void* memmove(void* dst, const void* src, size_t len)
38
{	return _STLP_VENDOR_CSTD::__memmove(dst, src, len); }
39
#  else
40
using _STLP_VENDOR_CSTD::memmove;
41
using _STLP_VENDOR_CSTD::memcpy;
42
#  endif
43
44
#  if !defined (_STLP_WCE)
45
// these functions just don't exist on Windows CE
46
using _STLP_VENDOR_CSTD::strcoll;
47
using _STLP_VENDOR_CSTD::strerror;
48
using _STLP_VENDOR_CSTD::strxfrm;
49
#  endif
50
51
#  if defined (__BORLANDC__)
52
extern "C++" {
53
#  endif
54
using _STLP_VENDOR_CSTD::memchr;
55
using _STLP_VENDOR_CSTD::strchr;
56
using _STLP_VENDOR_CSTD::strpbrk;
57
using _STLP_VENDOR_CSTD::strrchr;
58
using _STLP_VENDOR_CSTD::strstr;
59
#  if defined (__BORLANDC__)
60
}
61
#  endif
62
63
using _STLP_VENDOR_CSTD::memcmp;
64
using _STLP_VENDOR_CSTD::memset;
65
66
using _STLP_VENDOR_CSTD::strcat;
67
68
#  if !defined (strcmp) || !defined (__BORLANDC__)
69
using _STLP_VENDOR_CSTD::strcmp;
70
#  else
71
using ::strcmp;
72
#  endif
73
74
#  if !defined (strcpy) || !defined (__BORLANDC__)
75
using _STLP_VENDOR_CSTD::strcpy;
76
#  else
77
using ::strcpy;
78
#  endif
79
using _STLP_VENDOR_CSTD::strcspn;
80
using _STLP_VENDOR_CSTD::strlen;
81
using _STLP_VENDOR_CSTD::strncat;
82
using _STLP_VENDOR_CSTD::strncmp;
83
84
using _STLP_VENDOR_CSTD::strncpy;
85
using _STLP_VENDOR_CSTD::strspn;
86
87
using _STLP_VENDOR_CSTD::strtok;
88
#endif /* _STLP_NO_CSTD_FUNCTION_IMPORTS */
89
90
_STLP_END_NAMESPACE
91
92
#endif /* _STLP_IMPORT_VENDOR_CSTD */
93
94
#if (_STLP_OUTERMOST_HEADER_ID == 0x117)
95
#  include <stl/_epilog.h>
96
#  undef _STLP_OUTERMOST_HEADER_ID
97
#endif
98
99
#endif /* _STLP_CSTRING */
100
101
// Local Variables:
102
// mode:C++
103
// End: