MCPcopy Index your code
hub / github.com/git/git / decimal_width

Function decimal_width

pager.c:259–266  ·  view source on GitHub ↗

* How many columns do we need to show this number in decimal? */

Source from the content-addressed store, hash-verified

257 * How many columns do we need to show this number in decimal?
258 */
259int 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
268struct pager_command_config_data {
269 const char *cmd;

Callers 5

outputFunction · 0.85
format_commit_oneFunction · 0.85
fmt_output_email_subjectFunction · 0.85
show_statsFunction · 0.85
find_alignmentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected