MCPcopy Create free account
hub / github.com/TheLegendAli/DeepLab-Context / CloneString

Function CloneString

src/gtest/gtest-all.cpp:2138–2147  ·  view source on GitHub ↗

Copies at most length characters from str into a newly-allocated piece of memory of size length+1. The memory is allocated with new[]. A terminating null byte is written to the memory, and a pointer to it is returned. If str is NULL, NULL is returned.

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

CloneCStringMethod · 0.85

Calls 1

StrNCpyFunction · 0.85

Tested by

no test coverage detected