Lines Matching defs:item
49 * If the 'item' string ends in a comma, append 'base', and return
51 * otherwise. If 'dealloc' is non-zero, 'item' is freed; this happens
57 appendBase(char *item, char *base, int *err, int dealloc) {
72 /* Trivial case 1: If 'item' is NULL, return a copy of 'base' */
73 if (item == 0) {
80 /* Trivial case 2: If 'base' is NULL, return a copy of 'item' */
82 new = sdup(myself, T, item);
86 free(item);
90 len = strlen(item);
92 /* If 'item' is the empty string, return a copy of 'base' */
98 free(item);
103 * If 'item' ends in a comma, append 'base', and return a copy
104 * of the result. Otherwise, return a copy of 'item'.
106 if (item[len-1] == ',') {
110 (void) memcpy(new, item, len);
116 new = sdup(myself, T, item);
122 free(item);