MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / LLVM_LIBC_FUNCTION

Function LLVM_LIBC_FUNCTION

system/lib/llvm-libc/src/string/stpcpy.cpp:17–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15namespace LIBC_NAMESPACE_DECL {
16
17LLVM_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

Callers

nothing calls this directly

Calls 1

string_lengthFunction · 0.85

Tested by

no test coverage detected