Format scale parameter for meaningful display */
| 476 | |
| 477 | /* Format scale parameter for meaningful display */ |
| 478 | static char * |
| 479 | str_scale(int scale) { |
| 480 | char *result; |
| 481 | |
| 482 | if (scale == HN_AUTOSCALE || scale == HN_GETSCALE) |
| 483 | return str_flags(scale, ""); |
| 484 | |
| 485 | result = malloc(MAX_INT_STR_DIGITS); |
| 486 | result[0] = '\0'; |
| 487 | snprintf(result, MAX_INT_STR_DIGITS, "%d", scale); |
| 488 | return result; |
| 489 | } |
| 490 | |
| 491 | static void |
| 492 | testskipped(size_t i) |