Create a null‐terminated copy of the specified string, using the specified basicAllocator to supply memory, and return the address of the newly‐created modifiable string. The string that is returned is owned by the caller. The behavior is undefined unless bsl::strlen(string) <= INT_MAX and basicAllocator is non‐null.

Synopsis

Declared in <bdlb_string.h>

static
char*
copy(
    char const* string,
    bslma::Allocator* basicAllocator);

Created with MrDocs