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:
Anthony Minessale 2012-07-16 13:39:23 -05:00
parent 06046e3437
commit e81d31ce43
1 changed files with 11 additions and 0 deletions

View File

@ -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));