On Sun, 11 Oct 2009, Bruno Haible wrote:
> > I use snprintf like this:
> >
> > field_width = snprintf (NULL, 0, " %d", max_value);
> >
> > Later I use field_width for a "%*d" conversion on all rows of the table.
> > I don't have much experience with mbswidth, but I don't think it can be
> >
Hi Joel,
> I use snprintf like this:
>
> field_width = snprintf (NULL, 0, " %d", max_value);
>
> Later I use field_width for a "%*d" conversion on all rows of the table.
> I don't have much experience with mbswidth, but I don't think it can be
> useful here.
Indeed, in your case it is de f
Hi Bruno. Thanks for your response.
On Fri, 9 Oct 2009, Bruno Haible wrote:
> > In another case, I'm computing a column width for a table to be formatted
> > to a stream.
>
> Note that snprintf is not suitable for this purpose, because as soon as
> non-ASCII characters appear (in a UTF-8 locale