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 @@ -87,7 +87,6 @@ add_entrypoint_object(
8787 HDRS
8888 stpcpy.h
8989 DEPENDS
90- .mempcpy
9190 .string_utils
9291)
9392
Original file line number Diff line number Diff line change 88
99#include " src/string/stpcpy.h"
1010#include " src/__support/macros/config.h"
11- #include " src/string/mempcpy .h"
11+ #include " src/string/memory_utils/inline_memcpy .h"
1212#include " src/string/string_utils.h"
1313
1414#include " src/__support/common.h"
@@ -18,8 +18,8 @@ namespace LIBC_NAMESPACE_DECL {
1818LLVM_LIBC_FUNCTION (char *, stpcpy,
1919 (char *__restrict dest, const char *__restrict src)) {
2020 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;
2323
2424 if (result != nullptr )
2525 return result - 1 ;
You can’t perform that action at this time.
0 commit comments