FS-4429 --resolve you guys should come to cluecon we would like to help you get bvtapi working really well
This commit is contained in:
parent
06046e3437
commit
e81d31ce43
|
@ -2092,6 +2092,17 @@ SWITCH_DECLARE(unsigned int) switch_separate_string(char *buf, char delim, char
|
|||
return 0;
|
||||
}
|
||||
|
||||
|
||||
if (*buf == '^' && *(buf+1) == '^') {
|
||||
char *p = buf + 2;
|
||||
|
||||
if (p && *p && *(p+1)) {
|
||||
buf = p;
|
||||
delim = *buf++;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
memset(array, 0, arraylen * sizeof(*array));
|
||||
|
||||
return (delim == ' ' ? separate_string_blank_delim(buf, array, arraylen) : separate_string_char_delim(buf, delim, array, arraylen));
|
||||
|
|
Loading…
Reference in New Issue