Paul Tan <pyoka...@gmail.com> 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 majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to