提交 e1e7ad6b 编写于 作者: D Denys Vlasenko

awk: support %F %a %A in printf

function                                             old     new   delta
.rodata                                           104111  104120      +9
Signed-off-by: NDenys Vlasenko <vda.linux@googlemail.com>
上级 1f765709
......@@ -909,7 +909,7 @@ static int fmt_num(char *b, int size, const char *format, double n, int int_as_i
do { c = *s; } while (c && *++s);
if (strchr("diouxX", c)) {
r = snprintf(b, size, format, (int)n);
} else if (strchr("eEfgG", c)) {
} else if (strchr("eEfFgGaA", c)) {
r = snprintf(b, size, format, n);
} else {
syntax_error(EMSG_INV_FMT);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册