diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2014-10-27 11:45:01 +0800 |
---|---|---|
committer | Ben Hutchings <ben@decadent.org.uk> | 2020-03-28 21:42:54 +0000 |
commit | 70012a3955fec1faf78d59c69c57b6db584843cb (patch) | |
tree | 02a4524bc26ea06618a4f912b399cb0fdb7d4149 | |
parent | 8703ad5517c811716e37a2605acc8ddc8c66362a (diff) | |
download | klibc-70012a3955fec1faf78d59c69c57b6db584843cb.tar.gz |
[klibc] dash: [BUILTIN] Add printf support for format string a, A, and F
[ dash commit c77265b4ea89359c164346e400914bb24a3716d1 ]
This patch adds the format string characters a, A and F to the
supported set of the built-in printf command. They're already
supported by the underlying printf function.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
[bwh: Adjust context for klibc]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
-rw-r--r-- | usr/dash/bltin/printf.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/usr/dash/bltin/printf.c b/usr/dash/bltin/printf.c index add89095915db..a1c1e91839b0f 100644 --- a/usr/dash/bltin/printf.c +++ b/usr/dash/bltin/printf.c @@ -194,9 +194,12 @@ pc: break; } #ifdef HAVE_STRTOD + case 'a': + case 'A': case 'e': case 'E': case 'f': + case 'F': case 'g': case 'G': { double p = getdouble(); |