]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/test/test-util.c
util: Allow non-separator coalescing parsing in extract_first_word
authorRichard Maw <richard.maw@codethink.co.uk>
Tue, 23 Jun 2015 17:00:40 +0000 (17:00 +0000)
committerRichard Maw <richard.maw@codethink.co.uk>
Fri, 7 Aug 2015 15:50:42 +0000 (15:50 +0000)
commit206644aedeb8859801051ac170ec562c6a113a79
tree88ba118333423abc16871dc490a74cd911218b3d
parent12ba2c44dde4d7cfc0e531dbc3cbd0581c323637
util: Allow non-separator coalescing parsing in extract_first_word

If EXTRACT_DONT_COALESCE_SEPARATORS is passed, then leading separators,
trailing separators and spans of multiple separators aren't skipped, and
empty arguments from before, after or between separators may be extracted.
src/basic/util.c
src/basic/util.h
src/test/test-util.c