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

Function put_line

src/fmt.c:1001–1024  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

999 INDENT, including the prefix (if any). */
1000
1001static void
1002put_line (WORD *w, int indent)
1003{
1004 WORD *endline;
1005
1006 out_column = 0;
1007 put_space (prefix_indent);
1008 fputs (prefix, stdout);
1009 out_column += prefix_length;
1010 put_space (indent - out_column);
1011
1012 endline = w->next_break - 1;
1013 for (; w != endline; w++)
1014 {
1015 put_word (w);
1016 put_space (w->space);
1017 }
1018 put_word (w);
1019 last_line_length = out_column;
1020 putchar ('\n');
1021
1022 if (ferror (stdout))
1023 write_error ();
1024}
1025
1026/* Output to stdout the word W. */
1027

Callers 1

put_paragraphFunction · 0.85

Calls 3

put_spaceFunction · 0.85
put_wordFunction · 0.85
write_errorFunction · 0.85

Tested by

no test coverage detected