| 15 | namespace LIBC_NAMESPACE_DECL { |
| 16 | |
| 17 | LLVM_LIBC_FUNCTION(char *, stpcpy, |
| 18 | (char *__restrict dest, const char *__restrict src)) { |
| 19 | size_t size = internal::string_length(src) + 1; |
| 20 | __builtin_memcpy(dest, src, size); |
| 21 | char *result = dest + size; |
| 22 | |
| 23 | if (result != nullptr) |
| 24 | return result - 1; |
| 25 | return nullptr; |
| 26 | } |
| 27 | |
| 28 | } // namespace LIBC_NAMESPACE_DECL |
nothing calls this directly
no test coverage detected