MCPcopy Create free account
hub / github.com/cameron314/concurrentqueue / duplicate_string

Function duplicate_string

benchmarks/tbb/task_group_context.cpp:35–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33//------------------------------------------------------------------------
34
35inline char* duplicate_string ( const char* src ) {
36 char* dst = NULL;
37 if ( src ) {
38 size_t len = strlen(src) + 1;
39 dst = (char*)allocate_via_handler_v3(len);
40 strncpy (dst, src, len);
41 }
42 return dst;
43}
44
45captured_exception::~captured_exception () throw() {
46 clear();

Callers 1

setMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected