MCPcopy Create free account
hub / github.com/coreutils/coreutils / print_padded_number

Function print_padded_number

src/numfmt.c:1316–1332  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1314}
1315
1316static void
1317print_padded_number (intmax_t padding)
1318{
1319 if (format_str_prefix)
1320 fputs (format_str_prefix, stdout);
1321
1322 for (intmax_t p = padding; 0 < p; p--)
1323 putchar (' ');
1324
1325 fputs (padding_buffer, stdout);
1326
1327 for (intmax_t p = padding; p < 0; p++)
1328 putchar (' ');
1329
1330 if (format_str_suffix)
1331 fputs (format_str_suffix, stdout);
1332}
1333
1334/* Converts the TEXT number string to the requested representation,
1335 and handles automatic suffix addition. */

Callers 1

process_fieldFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected