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

Function print_white_space

src/pr.c:2219–2237  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2217 until this function is called. */
2218
2219static void
2220print_white_space (void)
2221{
2222 int h_new;
2223 int h_old = output_position;
2224 int goal = h_old + spaces_not_printed;
2225
2226 while (goal - h_old > 1
2227 && (h_new = POS_AFTER_TAB (chars_per_output_tab, h_old)) <= goal)
2228 {
2229 putchar (output_tab_char);
2230 h_old = h_new;
2231 }
2232 while (++h_old <= goal)
2233 putchar (' ');
2234
2235 output_position = goal;
2236 spaces_not_printed = 0;
2237}
2238
2239/* Print column separators.
2240

Callers 3

print_sep_stringFunction · 0.85
print_charFunction · 0.85
print_headerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected