StrInitClone
Description
Reinitialise strd as an independent copy of strs: same characters in the same order, with its own freshly allocated character buffer, inheriting the source string’s alignment and allocator configuration. The destination is deinit’d first, so it must already be a constructed Str.
Parameters
| Name | Direction | Description |
|---|---|---|
strd |
out | Destination Str handle (current contents are deinit’d first). |
strs |
in | Source Str handle. |
Success
Returns true; strd now holds a deep copy of every character in strs and inherits its copy/alignment/allocator configuration.
Failure
Returns false on allocation failure; strd is left in a valid but partially-populated state - call StrDeinit before reuse.
Usage example (Cross-references)
Usage examples (Cross-references)
No external code usages found in the scanned files.
Last updated on