* How many columns do we need to show this number in decimal? */
| 257 | * How many columns do we need to show this number in decimal? |
| 258 | */ |
| 259 | int decimal_width(uintmax_t number) |
| 260 | { |
| 261 | int width; |
| 262 | |
| 263 | for (width = 1; number >= 10; width++) |
| 264 | number /= 10; |
| 265 | return width; |
| 266 | } |
| 267 | |
| 268 | struct pager_command_config_data { |
| 269 | const char *cmd; |
no outgoing calls
no test coverage detected