Lines Matching refs:temp
78 char *temp;
84 temp = strchr(txt + 1, '/');
85 if (temp == NULL) {
86 temp = strdup(txt + 1);
87 if (temp == NULL)
91 len = (size_t)(temp - txt + 1);
92 temp = el_malloc(len * sizeof(*temp));
93 if (temp == NULL)
95 (void)strncpy(temp, txt + 1, len - 2);
96 temp[len - 2] = '\0';
98 if (temp[0] == 0) {
110 if (getpwnam_r(temp, &pwres, pwbuf, sizeof(pwbuf), &pass) != 0)
113 pass = getpwnam_r(temp, &pwres, pwbuf, sizeof(pwbuf));
115 pass = getpwnam(temp);
118 el_free(temp); /* value no more needed */
127 temp = el_malloc(len * sizeof(*temp));
128 if (temp == NULL)
130 (void)snprintf(temp, len, "%s/%s", pass->pw_dir, txt);
132 return temp;
150 char *temp;
154 temp = strrchr(text, '/');
155 if (temp) {
157 temp++;
158 nptr = el_realloc(filename, (strlen(temp) + 1) *
166 (void)strcpy(filename, temp);
167 len = (size_t)(temp - text); /* including last slash */
251 temp = el_malloc(len * sizeof(*temp));
252 if (temp == NULL)
254 (void)snprintf(temp, len, "%s%s", dirname, entry->d_name);
258 temp = NULL;
261 return temp;
425 Char *temp;
458 temp = el_malloc((len + 1) * sizeof(*temp));
459 (void)Strncpy(temp, ctemp, len);
460 temp[len] = '\0';
463 dequoted_temp = dequoting_func(temp);
479 ct_encode_string(dequoted_temp ? dequoted_temp : temp,
487 ct_encode_string(dequoted_temp ? dequoted_temp : temp,
595 el_free(temp);