Lines Matching defs:temp
72 char *temp;
78 temp = strchr(txt + 1, '/');
79 if (temp == NULL) {
80 temp = strdup(txt + 1);
81 if (temp == NULL)
85 len = (size_t)(temp - txt + 1);
86 temp = el_calloc(len, sizeof(*temp));
87 if (temp == NULL)
89 (void)strlcpy(temp, txt + 1, len - 1);
91 if (temp[0] == 0) {
103 if (getpwnam_r(temp, &pwres, pwbuf, sizeof(pwbuf), &pass) != 0)
106 pass = getpwnam_r(temp, &pwres, pwbuf, sizeof(pwbuf));
108 pass = getpwnam(temp);
111 el_free(temp); /* value no more needed */
120 temp = el_calloc(len, sizeof(*temp));
121 if (temp == NULL)
123 (void)snprintf(temp, len, "%s/%s", pass->pw_dir, txt);
125 return temp;
206 wchar_t *temp = el->el_line.buffer;
212 while (temp != el->el_line.cursor) {
217 if (temp[0] == '\'' && !d_quoted)
222 else if (temp[0] == '"' && !s_quoted)
224 temp++;
329 char *temp;
333 temp = strrchr(text, '/');
334 if (temp) {
336 temp++;
337 nptr = el_realloc(filename, (strlen(temp) + 1) *
345 (void)strcpy(filename, temp);
346 len = (size_t)(temp - text); /* including last slash */
429 temp = el_calloc(len, sizeof(*temp));
430 if (temp == NULL)
432 (void)snprintf(temp, len, "%s%s", dirname, entry->d_name);
436 temp = NULL;
439 return temp;
591 wchar_t *temp;
636 temp = el_malloc((len + 1) * sizeof(*temp));
637 (void) wcsncpy(temp, ctemp, len);
638 temp[len] = '\0';
639 return temp;
664 wchar_t *temp;
685 temp = find_word_to_complete(li->cursor,
687 if (temp == NULL)
700 ct_encode_string(temp, &el->el_scratch),
707 ct_encode_string(temp, &el->el_scratch), complete_func);
819 el_free(temp);