Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 4 Sep 1997 19:27:52 -0700 (PDT)
From:      karpen@ocean.campus.luth.se
To:        freebsd-gnats-submit@FreeBSD.ORG
Subject:   docs/4472: manpage for /usr/bin/printf is not complete
Message-ID:  <199709050227.TAA10164@hub.freebsd.org>
Resent-Message-ID: <199709050230.TAA10346@hub.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         4472
>Category:       docs
>Synopsis:       manpage for /usr/bin/printf is not complete
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Sep  4 19:30:01 PDT 1997
>Last-Modified:
>Originator:     Mikael Karpberg
>Organization:
-
>Release:        2.2-970621-RELENG
>Environment:
CVS indicates it's not fixed in any version...
>Description:
The manpage to /usr/bin/printf doesn't mention that you can set an
asterisk as the field width or precision. Putting an asterisk there
works however. It's even mentioned in a comment in the main loop of
printf(1):

....
* Basic algorithm is to scan the format string for conversion
* specifications -- once one is found, find out if the field
* width or precision is a '*'; if it is, gather up value.
....

>How-To-Repeat:
man 1 printf
>Fix:
Copy some text from printf(3)
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199709050227.TAA10164>