| 992 | increment the character count for the current file. */ |
| 993 | |
| 994 | static void |
| 995 | save_line_to_file (const struct cstring *line) |
| 996 | { |
| 997 | idx_t l = fwrite (line->str, sizeof (char), line->len, output_stream); |
| 998 | if (l != line->len) |
| 999 | { |
| 1000 | error (0, errno, _("write error for %s"), quoteaf (output_filename)); |
| 1001 | output_stream = NULL; |
| 1002 | cleanup_fatal (); |
| 1003 | } |
| 1004 | bytes_written += line->len; |
| 1005 | } |
| 1006 | |
| 1007 | /* Return a new, initialized control record. */ |
| 1008 |
no test coverage detected