Return a newly allocated null-terminated copy of string.
Declared in <bdlb_string.h>
Return a newly allocated null-terminated copy of string.
static
char*
copy(
bsl::string const& string,
bslma::Allocator* basicAllocator);
» more...
Return a newly allocated null-terminated copy of string.
static
char*
copy(
char const* string,
bslma::Allocator* basicAllocator);
» more...
Return a newly allocated null-terminated copy of string.
static
char*
copy(
char const* string,
int length,
bslma::Allocator* basicAllocator);
» more...
address of the newly allocated copy
| Name | Description |
|---|---|
| string | string to copy |
| basicAllocator | allocator used to supply memory |
| length | length of string in bytes |