Paul Tan <[email protected]> writes:
> +static const char *msgnum(const struct am_state *state)
> +{
> + static struct strbuf fmt = STRBUF_INIT;
> + static struct strbuf sb = STRBUF_INIT;
> +
> + strbuf_reset(&fmt);
> + strbuf_addf(&fmt, "%%0%dd", state->prec);
> +
> + strbuf_reset(&sb);
> + strbuf_addf(&sb, fmt.buf, state->cur);
Hmph, wouldn't ("%*d", state->prec, state->cur) work or am I missing
something?
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html