libgit2

git_oid_fromstrp

Version:

Parse a hex formatted null-terminated string into a git_oid.

Signature

int git_oid_fromstrp(git_oid *out, const char *str);

Parameters

In
out

oid structure the result is written into.

const char *
In
str

input hex string; must be null-terminated.

Returns

int

0 or an error code

Versions