Lines Matching full:temp

66 	char *temp;  in fn_tilde_expand()  local
73 temp = strchr(txt + 1, '/'); in fn_tilde_expand()
74 if (temp == NULL) { in fn_tilde_expand()
75 temp = strdup(txt + 1); in fn_tilde_expand()
76 if (temp == NULL) in fn_tilde_expand()
79 len = temp - txt + 1; /* text until string after slash */ in fn_tilde_expand()
80 temp = malloc(len); in fn_tilde_expand()
81 if (temp == NULL) in fn_tilde_expand()
83 (void)strncpy(temp, txt + 1, len - 2); in fn_tilde_expand()
84 temp[len - 2] = '\0'; in fn_tilde_expand()
86 if (temp[0] == 0) { in fn_tilde_expand()
90 if (getpwnam_r(temp, &pwres, pwbuf, sizeof(pwbuf), &pass) != 0) in fn_tilde_expand()
93 free(temp); /* value no more needed */ in fn_tilde_expand()
102 temp = malloc(tempsz); in fn_tilde_expand()
103 if (temp == NULL) in fn_tilde_expand()
105 (void)snprintf(temp, tempsz, "%s/%s", pass->pw_dir, txt); in fn_tilde_expand()
107 return temp; in fn_tilde_expand()
125 char *temp; in fn_filename_completion_function() local
129 temp = strrchr(text, '/'); in fn_filename_completion_function()
130 if (temp) { in fn_filename_completion_function()
131 size_t sz = strlen(temp + 1) + 1; in fn_filename_completion_function()
133 temp++; in fn_filename_completion_function()
141 (void)strlcpy(filename, temp, sz); in fn_filename_completion_function()
142 len = temp - text; /* including last slash */ in fn_filename_completion_function()
225 temp = malloc(tempsz); in fn_filename_completion_function()
226 if (temp == NULL) in fn_filename_completion_function()
228 (void)snprintf(temp, tempsz, "%s%s", dirname, entry->d_name); in fn_filename_completion_function()
232 temp = NULL; in fn_filename_completion_function()
235 return temp; in fn_filename_completion_function()
396 wchar_t *temp; in fn_complete() local
424 temp = reallocarray(NULL, len + 1, sizeof(*temp)); in fn_complete()
425 (void)wcsncpy(temp, ctemp, len); in fn_complete()
426 temp[len] = '\0'; in fn_complete()
438 ct_encode_string(temp, &el->el_scratch), in fn_complete()
445 ct_encode_string(temp, &el->el_scratch), complet_func); in fn_complete()
541 free(temp); in fn_complete()