Lines Matching refs:temp

78 	char *temp;  in fn_tilde_expand()  local
84 temp = strchr(txt + 1, '/'); in fn_tilde_expand()
85 if (temp == NULL) { in fn_tilde_expand()
86 temp = strdup(txt + 1); in fn_tilde_expand()
87 if (temp == NULL) in fn_tilde_expand()
91 len = (size_t)(temp - txt + 1); in fn_tilde_expand()
92 temp = el_malloc(len * sizeof(*temp)); in fn_tilde_expand()
93 if (temp == NULL) in fn_tilde_expand()
95 (void)strncpy(temp, txt + 1, len - 2); in fn_tilde_expand()
96 temp[len - 2] = '\0'; in fn_tilde_expand()
98 if (temp[0] == 0) { in fn_tilde_expand()
110 if (getpwnam_r(temp, &pwres, pwbuf, sizeof(pwbuf), &pass) != 0) in fn_tilde_expand()
113 pass = getpwnam_r(temp, &pwres, pwbuf, sizeof(pwbuf)); in fn_tilde_expand()
115 pass = getpwnam(temp); in fn_tilde_expand()
118 el_free(temp); /* value no more needed */ in fn_tilde_expand()
127 temp = el_malloc(len * sizeof(*temp)); in fn_tilde_expand()
128 if (temp == NULL) in fn_tilde_expand()
130 (void)snprintf(temp, len, "%s/%s", pass->pw_dir, txt); in fn_tilde_expand()
132 return temp; in fn_tilde_expand()
150 char *temp; in fn_filename_completion_function() local
154 temp = strrchr(text, '/'); in fn_filename_completion_function()
155 if (temp) { in fn_filename_completion_function()
157 temp++; in fn_filename_completion_function()
158 nptr = el_realloc(filename, (strlen(temp) + 1) * in fn_filename_completion_function()
166 (void)strcpy(filename, temp); in fn_filename_completion_function()
167 len = (size_t)(temp - text); /* including last slash */ in fn_filename_completion_function()
251 temp = el_malloc(len * sizeof(*temp)); in fn_filename_completion_function()
252 if (temp == NULL) in fn_filename_completion_function()
254 (void)snprintf(temp, len, "%s%s", dirname, entry->d_name); in fn_filename_completion_function()
258 temp = NULL; in fn_filename_completion_function()
261 return temp; in fn_filename_completion_function()
425 Char *temp; in fn_complete() local
458 temp = el_malloc((len + 1) * sizeof(*temp)); in fn_complete()
459 (void)Strncpy(temp, ctemp, len); in fn_complete()
460 temp[len] = '\0'; in fn_complete()
463 dequoted_temp = dequoting_func(temp); in fn_complete()
479 ct_encode_string(dequoted_temp ? dequoted_temp : temp, in fn_complete()
487 ct_encode_string(dequoted_temp ? dequoted_temp : temp, in fn_complete()
595 el_free(temp); in fn_complete()