Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- string[] split_string (string str, string delimiters)
- {
- Gee.ArrayList<string> list = new Gee.ArrayList<string>();
- string token = Posix.strtok (str, delimiters);
- while (token != null)
- {
- list.add (token);
- token = Posix.strtok (null, delimiters);
- }
- return list.to_array();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement