]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/basic/strv.h
strv: Add strv_shell_escape
authorRichard Maw <richard.maw@codethink.co.uk>
Tue, 23 Jun 2015 10:57:41 +0000 (10:57 +0000)
committerRichard Maw <richard.maw@codethink.co.uk>
Fri, 7 Aug 2015 15:50:43 +0000 (15:50 +0000)
commit04c14b25412cdbde834e8369bd7268cbe92873c0
treeee8eb7a5b1c72665dd81a5aadda654863a413345
parent61ee6939819963b7845c101485e188ca2a8119c6
strv: Add strv_shell_escape

This modifies the strv in-place, replacing strings with their escaped
version. It's mostly just a convenience function for when you need to
join a strv together because it's passed as a string to something, and
the separator needs escaping.
src/basic/strv.c
src/basic/strv.h
src/test/test-strv.c