in/master");

        if (c != NULL) {
                pp_commit_easy(CMIT_FMT_ONELINE, c, &amp;commitline);
                printf(_("Current commit: %s\n"), commitline.buf);
        }</pre>
</div>
</div>
<div class="paragraph">
<p>The <code>struct strbuf</code> provides some safety belts to your basic <code>char*</code>, one of
which is a length member to prevent buffer overruns. It needs to be initialized
nicely with <code>STRBUF_INIT</code>. Keep it in mind when you need to pass around <code>char*</code