File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -89,7 +89,6 @@ add_entrypoint_object(
89
89
HDRS
90
90
stpcpy.h
91
91
DEPENDS
92
- .mempcpy
93
92
.string_utils
94
93
)
95
94
Original file line number Diff line number Diff line change 8
8
9
9
#include " src/string/stpcpy.h"
10
10
#include " src/__support/macros/config.h"
11
- #include " src/string/mempcpy .h"
11
+ #include " src/string/memory_utils/inline_memcpy .h"
12
12
#include " src/string/string_utils.h"
13
13
14
14
#include " src/__support/common.h"
@@ -18,8 +18,8 @@ namespace LIBC_NAMESPACE_DECL {
18
18
LLVM_LIBC_FUNCTION (char *, stpcpy,
19
19
(char *__restrict dest, const char *__restrict src)) {
20
20
size_t size = internal::string_length (src) + 1 ;
21
- char *result =
22
- reinterpret_cast < char *>( LIBC_NAMESPACE::mempcpy ( dest, src, size)) ;
21
+ inline_memcpy (dest, src, size);
22
+ char *result = dest + size;
23
23
24
24
if (result != nullptr )
25
25
return result - 1 ;
You can’t perform that action at this time.
0 commit comments