chiark / gitweb /
util: add new write_string_filef() helper
authorLennart Poettering <lennart@poettering.net>
Tue, 5 Jun 2018 14:02:32 +0000 (16:02 +0200)
committerSven Eden <yamakuzure@gmx.net>
Fri, 24 Aug 2018 14:47:08 +0000 (16:47 +0200)
commite515de190d11d311f5de6153773100aef8d45964
tree0ad088fdc2f56bae1dfb4587254b3bfa0d6687e8
parent83e6d192cbe160dbea62427bab0f6f7d490ce215
util: add new write_string_filef() helper

This new helper combines asprintf() and write_string_file() in one,
which is useful at various places to shorten the code a bit.
src/basic/capability-util.c
src/basic/fileio.c
src/basic/fileio.h