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

Function write_out

src/fold.c:146–152  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

144}
145
146static void
147write_out (char const *line, size_t line_len, bool newline)
148{
149 if (fwrite (line, sizeof (char), line_len, stdout) != line_len
150 || (newline && putchar ('\n') < 0))
151 write_error ();
152}
153
154/* Fold file FILENAME, or standard input if FILENAME is "-",
155 to stdout, with maximum line length WIDTH.

Callers 1

fold_fileFunction · 0.85

Calls 1

write_errorFunction · 0.85

Tested by

no test coverage detected