git_strarray_copy

Copy a string array object from source to target.

Note: target is overwritten and hence should be empty, otherwise its contents are leaked. Call git_strarray_free() if necessary.

extern (C) nothrow @nogc
int
git_strarray_copy

Parameters

tgt .git_strarray*

target

src const(.git_strarray)*

source

Return Value

Type: int

0 on success, < 0 on allocation failure

Meta