summaryrefslogtreecommitdiff
path: root/src/basic/fileio.h
diff options
context:
space:
mode:
authorDaniel Mack <daniel@zonque.org>2015-07-06 17:31:44 -0400
committerDaniel Mack <daniel@zonque.org>2015-07-06 17:31:44 -0400
commit40beecdb6d1c73e5acb62ebac2ccbfd7891f2418 (patch)
tree40626ff5f761e898e7343939878a10d87e9d29a8 /src/basic/fileio.h
parenteff8efe671e9ffa81e80ad13f791a32262567dfe (diff)
fileio: add 'enforce_newline' argument to write_string_stream()
Add a flag to control whether write_string_stream() should always enforce a trailing newline character in the file.
Diffstat (limited to 'src/basic/fileio.h')
-rw-r--r--src/basic/fileio.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/basic/fileio.h b/src/basic/fileio.h
index 91d4a0d2d5..989b904c26 100644
--- a/src/basic/fileio.h
+++ b/src/basic/fileio.h
@@ -25,7 +25,7 @@
#include "macro.h"
-int write_string_stream(FILE *f, const char *line);
+int write_string_stream(FILE *f, const char *line, bool enforce_newline);
int write_string_file(const char *fn, const char *line);
int write_string_file_no_create(const char *fn, const char *line);
int write_string_file_atomic(const char *fn, const char *line);