vfprintf() string precision type

Bruce Evans brde at optusnet.com.au
Mon Sep 17 22:27:31 PDT 2007


On Mon, 17 Sep 2007, Sean C. Farley wrote:

> On Mon, 17 Sep 2007, Bruce Evans wrote:

>> From printf.3:
>> A field width or precision, or both, may be indicated by
>> an asterisk
>> .Ql *
>> or an asterisk followed by one or more decimal digits and a
>> .Ql $
>> instead of a
>> digit string.
>> In this case, an
>> .Vt int
        ^^^
>> argument supplies the field width or precision.
>
> This is why I asked.  The man page does not specifically state that the
> type must be int.  At least in my head, "decimal digits" could be an
> integer of any size in base 10.  The other quotes you give do specify
> it.  Would it be acceptable to change the man page to state int type, so
> I do not ask again after I inevitably forget?  :)

Er, even the man page specifically says "int", using wording essentially
identical to C99.

Bruce


More information about the freebsd-standards mailing list