Lines Matching refs:temp
74 char *temp; in fn_tilde_expand() local
82 temp = strdup(txt + 1); in fn_tilde_expand()
83 if (temp == NULL) in fn_tilde_expand()
88 temp = el_calloc(len, sizeof(*temp)); in fn_tilde_expand()
89 if (temp == NULL) in fn_tilde_expand()
91 (void)strlcpy(temp, txt + 1, len - 1); in fn_tilde_expand()
93 if (temp[0] == 0) { in fn_tilde_expand()
105 if (getpwnam_r(temp, &pwres, pwbuf, sizeof(pwbuf), &pass) != 0) in fn_tilde_expand()
108 pass = getpwnam_r(temp, &pwres, pwbuf, sizeof(pwbuf)); in fn_tilde_expand()
110 pass = getpwnam(temp); in fn_tilde_expand()
113 el_free(temp); /* value no more needed */ in fn_tilde_expand()
122 temp = el_calloc(len, sizeof(*temp)); in fn_tilde_expand()
123 if (temp == NULL) in fn_tilde_expand()
125 (void)snprintf(temp, len, "%s/%s", pass->pw_dir, txt); in fn_tilde_expand()
127 return temp; in fn_tilde_expand()
208 wchar_t *temp = el->el_line.buffer; in escape_filename() local
214 while (temp != el->el_line.cursor) { in escape_filename()
219 if (temp[0] == '\'' && !d_quoted && in escape_filename()
220 (temp == el->el_line.buffer || temp[-1] != '\\')) in escape_filename()
225 else if (temp[0] == '"' && !s_quoted) in escape_filename()
227 temp++; in escape_filename()
332 char *temp; in fn_filename_completion_function() local
427 temp = el_calloc(len, sizeof(*temp)); in fn_filename_completion_function()
428 if (temp == NULL) in fn_filename_completion_function()
430 (void)snprintf(temp, len, "%s%s", dirname, entry->d_name); in fn_filename_completion_function()
434 temp = NULL; in fn_filename_completion_function()
437 return temp; in fn_filename_completion_function()
589 wchar_t *temp; in find_word_to_complete() local
634 temp = el_malloc((len + 1) * sizeof(*temp)); in find_word_to_complete()
635 (void) wcsncpy(temp, ctemp, len); in find_word_to_complete()
636 temp[len] = '\0'; in find_word_to_complete()
637 return temp; in find_word_to_complete()
662 wchar_t *temp; in fn_complete2() local
683 temp = find_word_to_complete(li->cursor, in fn_complete2()
685 if (temp == NULL) in fn_complete2()
698 ct_encode_string(temp, &el->el_scratch), in fn_complete2()
705 ct_encode_string(temp, &el->el_scratch), complete_func); in fn_complete2()
818 el_free(temp); in fn_complete2()