Lines Matching defs:path
41 * scheme://[[user[:password]@]host[:port]]/path[[#fragment]|[?query]]
70 char *end = NULL, *user = NULL, *host = NULL, *path = NULL;
74 if ((path = end = strchr(string, '/')) == NULL)
108 for (port = host; (port < path); port++)
112 if (port < path) {
113 u->port = strndup(port + 1, path - port - 1);
119 if (path != NULL) {
120 char *name = strrchr(path, '/');
122 u->path_part = strdup(path);
132 for (end = path; *end != '\0'; end++)
143 u->path = strndup(path, end - path);
171 ((uri->fragment != NULL) && (uri->path == NULL)) ||
172 ((uri->query != NULL) && (uri->path == NULL))) {
176 if (uri->path == NULL || uri->path[0] == '/')
195 (uri->path ? uri->path : ""),
224 if (uri->path != NULL)
225 free(uri->path);
259 if (uri->path != NULL)
260 fprintf(fp, "path: %s\n", uri->path);