Lines Matching refs:path
27 * in place replace of first occurrence of /match/ with /replace/ in path
28 * end of path returned
34 pathrepl(register char* path, const char* match, register const char* replace)
43 return(path + strlen(path));
46 while (*path && *path++ != '/');
47 if (!*path) break;
48 if (*path == *m)
50 t = path;
51 while (*m && *m++ == *path) path++;
52 if (!*m && *path == '/')
58 while (p < path && *r) *p++ = *r++;
59 if (p < path) while (*p++ = *path++);
60 else if (*r && p >= path)
64 t = path + strlen(path);
66 while (t >= path) *u-- = *t--;
72 path = t;
76 return(path);