MCPcopy Create free account
hub / github.com/apache/trafficserver / _TSstrdup

Function _TSstrdup

src/api/InkAPI.cc:605–609  ·  view source on GitHub ↗

length has to be int64_t and not size_t, since -1 means to call strlen() to get length

Source from the content-addressed store, hash-verified

603
604// length has to be int64_t and not size_t, since -1 means to call strlen() to get length
605char *
606_TSstrdup(const char *str, int64_t length, const char *path)
607{
608 return _xstrdup(str, length, path);
609}
610
611size_t
612TSstrlcpy(char *dst, const char *str, size_t siz)

Callers 2

TSstrdupFunction · 0.85
TSstrndupFunction · 0.85

Calls 1

_xstrdupFunction · 0.85

Tested by

no test coverage detected