Lines Matching refs:lst
135 char **lst = ifo->environ; in add_environ() local
145 while (lst && lst[i]) { in add_environ()
146 if (match && strncmp(lst[i], match, l) == 0) { in add_environ()
148 free(lst[i]); in add_environ()
149 lst[i] = xstrdup(value); in add_environ()
152 l = strlen(lst[i]); in add_environ()
154 lst[i] = xrealloc(lst[i], l + lv + 2); in add_environ()
155 lst[i][l] = ' '; in add_environ()
156 memcpy(lst[i] + l + 1, p, lv); in add_environ()
157 lst[i][l + lv + 1] = '\0'; in add_environ()
160 return lst[i]; in add_environ()
165 newlist = xrealloc(lst, sizeof(char *) * (i + 2)); in add_environ()