MCPcopy Create free account
hub / github.com/ddnet/ddnet / str_copy

Function str_copy

src/base/str.cpp:18–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16#include <cstring>
17
18int str_copy(char *dst, const char *src, int dst_size)
19{
20 dst[0] = '\0';
21 strncat(dst, src, dst_size - 1);
22 return str_utf8_fix_truncation(dst);
23}
24
25void str_append(char *dst, const char *src, int dst_size)
26{

Callers 3

str_truncateFunction · 0.70
str_utf8_truncateFunction · 0.70
str_utf8_copy_numFunction · 0.70

Calls 1

str_utf8_fix_truncationFunction · 0.85

Tested by

no test coverage detected