[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Not a bug - but I need some help...
From: |
jon wackley |
Subject: |
RE: Not a bug - but I need some help... |
Date: |
Wed, 26 Feb 2003 21:37:21 -0500 |
Hi,
Should the format line below be;
wprintw("%.*s", n, s)
I'm currently dealing with a similar issue.
Thanks,
jonw
* PREC
an optional field; if present, it is introduced with ``.'' (a
period). This field gives the maximum number of characters to
print in a conversion; the minimum number of digits of an integer
to print, for conversions with TYPE `d', `i', `o', `u', `x', and
`X'; the maximum number of significant digits, for the `g' and `G'
conversions; or the number of digits to print after the decimal
point, for `e', `E', and `f' conversions. You can specify the
precision either directly as a decimal integer or indirectly by
using an asterisk (`*'), in which case an `int' argument is used
as the precision. Supplying a negative precision is equivalent to
omitting the precision. If only a period is specified the
precision is zero. If a precision appears with any other
conversion TYPE than those listed here, the behavior is undefined.
> -----Original Message-----
> From: address@hidden
> [mailto:address@hidden
> Behalf Of
> Thomas Dickey
> Sent: February 26, 2003 7:07 PM
> To: Mike Aubury
> Cc: address@hidden
> Subject: Re: Not a bug - but I need some help...
>
> Otherwise, a
> wprintw("%.s", n, s);
> will truncate things - takes some tinkering to do it properly...
>