Lines Matching defs:path
49 xbasename_r(const char *path, char *buf, size_t buflen)
55 * If `path' is a null pointer or points to an empty string,
58 if (path == NULL || *path == '\0') {
65 endp = path + strlen(path) - 1;
66 while (endp != path && *endp == '/')
70 if (endp == path && *endp == '/') {
77 for (startp = endp; startp > path && *(startp - 1) != '/'; startp--)
94 basename(char *path)
98 (void)xbasename_r(path, result, sizeof(result));