Lines Matching refs:a_old
317 * Arguments: a_old - [RO, *RW] - (char **)
332 pkgstrExpandTokens(char **a_old, char *a_string, char a_separator,
366 if (pkgstrContainsToken(*a_old, p, sep) == B_FALSE) {
367 pkgstrAddToken(a_old, p, *sep);
587 * Arguments: a_old - [RO, *RW] - (char **)
592 * to the end of the "a_old" string
605 * NOTE: Any string returned in 'a_old' is placed in new storage for the
611 pkgstrAddToken(char **a_old, char *a_new, char a_separator)
615 assert(a_old != (char **)NULL);
636 if ((*a_old != (char *)NULL) && ((*a_old)[0] == '\0')) {
637 /* *a_old is set to NULL by free */
638 free(*a_old);
639 *a_old = (char *)NULL;
644 if (*a_old != (char *)NULL) {
646 p = pkgstrPrintf("%s%c%s", *a_old, a_separator, a_new);
647 free(*a_old);
648 *a_old = p;
654 assert(*a_old == (char *)NULL);
655 *a_old = strdup(a_new);
656 assert(*a_old != (char *)NULL);