Extend the split function to support multiple delimiters

This commit is contained in:
Andrea Mazzoleni 2016-04-26 21:26:15 +02:00
parent 4cc1109444
commit 6053096862
3 changed files with 11 additions and 14 deletions

View file

@ -101,7 +101,7 @@ static int devresolve_proc(uint64_t device, char* path, size_t path_size)
break;
/* split the line */
split_mac = split(split_map, 9, s);
split_mac = split(split_map, 9, s, " \t\r\n");
/* if too short, it's the wrong line */
if (split_mac < 9)