Lines Matching refs:temp

73 	char *temp;  in fn_tilde_expand()  local
81 temp = strdup(txt + 1); in fn_tilde_expand()
82 if (temp == NULL) in fn_tilde_expand()
87 temp = el_calloc(len, sizeof(*temp)); in fn_tilde_expand()
88 if (temp == NULL) in fn_tilde_expand()
90 (void)strlcpy(temp, txt + 1, len - 1); in fn_tilde_expand()
92 if (temp[0] == 0) { in fn_tilde_expand()
104 if (getpwnam_r(temp, &pwres, pwbuf, sizeof(pwbuf), &pass) != 0) in fn_tilde_expand()
107 pass = getpwnam_r(temp, &pwres, pwbuf, sizeof(pwbuf)); in fn_tilde_expand()
109 pass = getpwnam(temp); in fn_tilde_expand()
112 el_free(temp); /* value no more needed */ in fn_tilde_expand()
121 temp = el_calloc(len, sizeof(*temp)); in fn_tilde_expand()
122 if (temp == NULL) in fn_tilde_expand()
124 (void)snprintf(temp, len, "%s/%s", pass->pw_dir, txt); in fn_tilde_expand()
126 return temp; in fn_tilde_expand()
207 wchar_t *temp = el->el_line.buffer; in escape_filename() local
213 while (temp != el->el_line.cursor) { in escape_filename()
218 if (temp[0] == '\'' && !d_quoted && in escape_filename()
219 (temp == el->el_line.buffer || temp[-1] != '\\')) in escape_filename()
224 else if (temp[0] == '"' && !s_quoted) in escape_filename()
226 temp++; in escape_filename()
331 char *temp; in fn_filename_completion_function() local
432 temp = el_calloc(len, sizeof(*temp)); in fn_filename_completion_function()
433 if (temp == NULL) in fn_filename_completion_function()
435 (void)snprintf(temp, len, "%s%s", dirname, entry->d_name); in fn_filename_completion_function()
439 temp = NULL; in fn_filename_completion_function()
442 return temp; in fn_filename_completion_function()
594 wchar_t *temp; in find_word_to_complete() local
639 temp = el_malloc((len + 1) * sizeof(*temp)); in find_word_to_complete()
640 if (temp == NULL) in find_word_to_complete()
642 (void) wcsncpy(temp, ctemp, len); in find_word_to_complete()
643 temp[len] = '\0'; in find_word_to_complete()
644 return temp; in find_word_to_complete()
669 wchar_t *temp; in fn_complete2() local
690 temp = find_word_to_complete(li->cursor, in fn_complete2()
692 if (temp == NULL) in fn_complete2()
705 ct_encode_string(temp, &el->el_scratch), in fn_complete2()
712 ct_encode_string(temp, &el->el_scratch), complete_func); in fn_complete2()
825 el_free(temp); in fn_complete2()