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

Function print_n_spaces

src/od.c:507–512  ·  view source on GitHub ↗

Print N spaces, where 0 <= N. Do not rely on printf ("%*s", N, "") as N may exceed INT_MAX. */

Source from the content-addressed store, hash-verified

505/* Print N spaces, where 0 <= N.
506 Do not rely on printf ("%*s", N, "") as N may exceed INT_MAX. */
507static void
508print_n_spaces (intmax_t n)
509{
510 for (; 0 < n; n--)
511 putchar (' ');
512}
513
514/* If there are FIELDS fields, return the total padding up to the
515 start of field I, where I < FIELDS. PAD is the total padding for

Callers 1

write_blockFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected