Lines Matching defs:path
37 /* figure out the path to work with in this particular request */
40 char **path) /* returns the allocated
41 real path to work with */
47 Curl_urldecode(data->state.up.path, 0, &working_path,
52 /* new path to switch to in case we need to */
93 *path = Curl_dyn_ptr(&npath);
96 *path = working_path;
118 CURLcode Curl_get_pathname(const char **cpp, char **path, char *homedir)
130 *path = NULL;
137 *path = malloc(fullPathLength);
138 if(!*path)
149 (*path)[j] = '\0';
162 (*path)[j++] = cp[i];
179 /* Handling for relative path - prepend home directory */
181 strcpy(*path, homedir);
183 (*path)[pathLength++] = '/';
184 (*path)[pathLength] = '\0';
187 /* Copy path name up until first "whitespace" */
188 memcpy(&(*path)[pathLength], cp, (int)(end - cp));
190 (*path)[pathLength] = '\0';
195 Curl_safefree(*path);