| 144 | } |
| 145 | |
| 146 | static void |
| 147 | write_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. |
no test coverage detected