chiark / gitweb /
fileio: add 'enforce_newline' argument to write_string_stream()
authorDaniel Mack <daniel@zonque.org>
Mon, 6 Jul 2015 21:31:44 +0000 (17:31 -0400)
committerSven Eden <yamakuzure@gmx.net>
Tue, 14 Mar 2017 09:05:56 +0000 (10:05 +0100)
commitce5792dac67c5ae5656f1f9665b777d44af4cb35
treefd1dffb820e69e3b046211dc4e9a95fc7ceb5f24
parent1818b3de53f8268eaf4bbbe57186c13d86b62578
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.
src/shared/fileio.c
src/shared/fileio.h