Lines Matching refs:item
112 * If the 'item' string ends in a comma, append 'base', and return
114 * otherwise. If 'dealloc' is non-zero, 'item' is freed; this happens
120 appendBase(char *item, char *base, int *err, int dealloc) {
135 /* Trivial case 1: If 'item' is NULL, return a copy of 'base' */
136 if (item == 0) {
143 /* Trivial case 2: If 'base' is NULL, return a copy of 'item' */
145 new = sdup(myself, T, item);
149 free(item);
153 len = strlen(item);
155 /* If 'item' is the empty string, return a copy of 'base' */
161 free(item);
166 * If 'item' ends in a comma, append 'base', and return a copy
167 * of the result. Otherwise, return a copy of 'item'.
169 if (item[len-1] == ',') {
173 (void) memcpy(new, item, len);
179 new = sdup(myself, T, item);
185 free(item);