libgit2

git_strarray_copy

Version:

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.

Signature

int git_strarray_copy(git_strarray *tgt, const git_strarray *src);

Parameters

In
tgt

target

In
src

source

Returns

int

0 on success, < 0 on allocation failure

Versions