awk: support %F %a %A in printf

function                                             old     new   delta
.rodata                                           104111  104120      +9

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko 2021-07-03 01:59:36 +02:00
parent 1f765709ed
commit e1e7ad6b60

View File

@ -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);