Lines Matching refs:path
27 * in place replace of first occurrence of /match/ with /replace/ in path
28 * end of path returned
36 pathrepl(char* path, const char* match, const char* replace)
38 return pathrepl_20100601(path, PATH_MAX, match, replace);
46 pathrepl_20100601(register char* path, size_t size, const char* match, register const char* replace)
57 return(path + strlen(path));
59 size = strlen(path) + 1;
62 while (*path && *path++ != '/');
63 if (!*path) break;
64 if (*path == *m)
66 t = path;
67 while (*m && *m++ == *path) path++;
68 if (!*m && *path == '/')
74 while (p < path && *r) *p++ = *r++;
75 if (p < path) while (*p++ = *path++);
76 else if (*r && p >= path)
80 t = path + strlen(path);
82 while (t >= path) *u-- = *t--;
88 path = t;
92 return(path);