git_oid_fromstrp

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

  1. int git_oid_fromstrp(.git_oid* out_, const(char)* str, .git_oid_t type)
  2. int git_oid_fromstrp(.git_oid* out_, const(char)* str)
    version(!GIT_EXPERIMENTAL_SHA256)
    extern (C) nothrow @nogc public
    int
    git_oid_fromstrp
    (,
    const(char)* str
    )

Parameters

out_ .git_oid*

oid structure the result is written into.

str const(char)*

input hex string; must be null-terminated.

Return Value

Type: int

0 or an error code

Meta