Home | History | Annotate | Download | only in src

Lines Matching full:temp

79 	char *temp;
85 temp = strchr(txt + 1, '/');
86 if (temp == NULL) {
87 temp = strdup(txt + 1);
88 if (temp == NULL)
92 len = (size_t)(temp - txt + 1);
93 temp = el_malloc(len * sizeof(*temp));
94 if (temp == NULL)
96 (void)strncpy(temp, txt + 1, len - 2);
97 temp[len - 2] = '\0';
99 if (temp[0] == 0) {
111 if (getpwnam_r(temp, &pwres, pwbuf, sizeof(pwbuf), &pass) != 0)
114 pass = getpwnam_r(temp, &pwres, pwbuf, sizeof(pwbuf));
116 pass = getpwnam(temp);
119 el_free(temp); /* value no more needed */
128 temp = el_malloc(len * sizeof(*temp));
129 if (temp == NULL)
131 (void)snprintf(temp, len, "%s/%s", pass->pw_dir, txt);
133 return temp;
151 char *temp;
155 temp = strrchr(text, '/');
156 if (temp) {
158 temp++;
159 nptr = el_realloc(filename, (strlen(temp) + 1) *
167 (void)strcpy(filename, temp);
168 len = (size_t)(temp - text); /* including last slash */
246 temp = el_malloc(len * sizeof(*temp));
247 if (temp == NULL)
249 (void)snprintf(temp, len, "%s%s", dirname, entry->d_name);
253 temp = NULL;
256 return temp;
417 Char *temp;
445 temp = el_malloc((len + 1) * sizeof(*temp));
446 (void)Strncpy(temp, ctemp, len);
447 temp[len] = '\0';
459 ct_encode_string(temp, &el->el_scratch),
466 ct_encode_string(temp, &el->el_scratch), complet_func);
562 el_free(temp);