diff options
author | Lennart Poettering <lennart@poettering.net> | 2004-09-14 17:52:11 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2004-09-14 17:52:11 +0000 |
commit | 8c6593dabf3253e20fead143855267570a403c9a (patch) | |
tree | 46ab7f2f77375113d2e8f0461a512688b0aa8857 /polyp/util.c | |
parent | 829656c5fcd7169e4c2f86f4ad5098ea9aaa5643 (diff) |
add module-combine
remove option "stay-root"
clean up pa_conf
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@199 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'polyp/util.c')
-rw-r--r-- | polyp/util.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/polyp/util.c b/polyp/util.c index 039ec264..3ab6d51a 100644 --- a/polyp/util.c +++ b/polyp/util.c @@ -373,3 +373,19 @@ int pa_parse_boolean(const char *v) { return -1; } + +char *pa_split(const char *c, const char *delimiter, const char**state) { + const char *current = *state ? *state : c; + size_t l; + + if (!*current) + return NULL; + + l = strcspn(current, delimiter); + *state = current+l; + + if (**state) + *state++; + + return pa_xstrndup(current, l); +} |