Lines Matching refs:temp
73 char *temp;
80 temp = strchr(txt + 1, '/');
81 if (temp == NULL) {
82 temp = strdup(txt + 1);
83 if (temp == NULL)
86 len = temp - txt + 1; /* text until string after slash */
87 temp = malloc(len);
88 if (temp == NULL)
90 (void)strncpy(temp, txt + 1, len - 2);
91 temp[len - 2] = '\0';
93 if (temp[0] == 0) {
97 if (getpwnam_r(temp, &pwres, pwbuf, sizeof(pwbuf), &pass) != 0)
100 free(temp); /* value no more needed */
108 temp = malloc(strlen(pass->pw_dir) + 1 + strlen(txt) + 1);
109 if (temp == NULL)
111 (void)sprintf(temp, "%s/%s", pass->pw_dir, txt);
113 return (temp);
131 char *temp;
135 temp = strrchr(text, '/');
136 if (temp) {
138 temp++;
139 nptr = realloc(filename, strlen(temp) + 1);
146 (void)strcpy(filename, temp);
147 len = temp - text; /* including last slash */
220 temp = malloc(strlen(dirname) + len + 1);
221 if (temp == NULL)
223 (void)sprintf(temp, "%s%s", dirname, entry->d_name);
227 temp = NULL;
230 return (temp);
391 char *temp;
425 temp = malloc(sizeof(*temp) * (len + 1));
426 if (temp == NULL)
429 temp = alloca(sizeof(*temp) * (len + 1));
431 (void)strncpy(temp, ctemp, len);
432 temp[len] = '\0';
435 dequoted_temp = dequoting_func(temp);
450 matches = (*attempted_completion_function) (dequoted_temp ? dequoted_temp : temp,
456 matches = completion_matches(dequoted_temp ? dequoted_temp : temp, complet_func);
553 free(temp);