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

Function LLVM_LIBC_FUNCTION

system/lib/llvm-libc/src/string/strcpy.cpp:19–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17namespace LIBC_NAMESPACE_DECL {
18
19LLVM_LIBC_FUNCTION(char *, strcpy,
20 (char *__restrict dest, const char *__restrict src)) {
21 LIBC_CRASH_ON_NULLPTR(dest);
22 size_t size = internal::string_length(src) + 1;
23 inline_memcpy(dest, src, size);
24 return dest;
25}
26
27} // namespace LIBC_NAMESPACE_DECL

Callers

nothing calls this directly

Calls 2

string_lengthFunction · 0.85
inline_memcpyFunction · 0.85

Tested by

no test coverage detected