diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2010-02-10 15:36:49 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2010-02-11 19:25:39 +1000 |
commit | 3ac43df5d4a25d6e0058b327fa05a1c1436b4794 (patch) | |
tree | 0c691ad68eb1bf4a87e2dd66e373ccbe78f6c31d /config | |
parent | 27d1b86d1b858f931b4cb1b6ddf857c76d92a6d9 (diff) |
Add xstrtokenize to the dix.
Move tokenize out of the parser, make it a dix util function instead.
Splitting a string into multiple substrings is useful by other places, so
let's use it across the line. Future users include config/hal, config/udev
and of course the parser.
Example usage:
char **substrings = xstrtokenize(my_string, "\n");
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Dan Nicholson <dbn.lists@gmail.com>
Diffstat (limited to 'config')
0 files changed, 0 insertions, 0 deletions