Lines Matching defs:path
50 dirname(char *path)
57 * If `path' is a null pointer or points to an empty string,
60 if ((path == NULL) || (*path == '\0'))
65 lastp = path + strlen(path) - 1;
66 while (lastp != path && *lastp == '/')
69 /* Terminate path at the last occurence of '/'. */
73 while (lastp != path && *lastp == '/')
77 len = (lastp - path) + 1 /* last char */;
81 memcpy(result, path, len);
86 } while (--lastp >= path);