git_oid_nfmt

Format a git_oid into a partial hex string.

extern (C) nothrow @nogc
int
git_oid_nfmt
(
char* out_
,
size_t n
,
const(.git_oid)* id
)

Parameters

out_ char*

output hex string; you say how many bytes to write. If the number of bytes is > GIT_OID_HEXSZ, extra bytes will be zeroed; if not, a '\0' terminator is NOT added.

n size_t

number of characters to write into out string

id const(.git_oid)*

oid structure to format.

Return Value

Type: int

0 on success or error code

Meta