summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordas <das@FreeBSD.org>2004-06-05 09:32:17 +0000
committerdas <das@FreeBSD.org>2004-06-05 09:32:17 +0000
commit56a075674a3ee797a6db77d7a59e38cca6b6fba0 (patch)
treeea6c8800ff92857c4ed6f1535263467cf4445382
parentbc0434bbb2d87832e7f6330bb260c1329b1f7e1f (diff)
downloadFreeBSD-src-56a075674a3ee797a6db77d7a59e38cca6b6fba0.zip
FreeBSD-src-56a075674a3ee797a6db77d7a59e38cca6b6fba0.tar.gz
Enable support for the %a, %A, and %F format specifiers.
-rw-r--r--usr.bin/printf/printf.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.bin/printf/printf.c b/usr.bin/printf/printf.c
index a99958e..58d2cca 100644
--- a/usr.bin/printf/printf.c
+++ b/usr.bin/printf/printf.c
@@ -272,7 +272,10 @@ next: for (start = fmt;; ++fmt) {
PF(f, uval);
break;
}
- case 'e': case 'E': case 'f': case 'g': case 'G': {
+ case 'e': case 'E':
+ case 'f': case 'F':
+ case 'g': case 'G':
+ case 'a': case 'A': {
double p;
if (getdouble(&p))
OpenPOWER on IntegriCloud