Skip to content

StrInitClone

Description

Reinitialise strd as a deep clone of strs. Same contract as VecInitClone, specialised for the char element.

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